Skip to content

Commit

Permalink
pull in NXidentifier to NXentry
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Sep 23, 2024
1 parent 22f7e3c commit e0b24a6
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions base_classes/NXidentifier.nxdl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type="text/xsl" href="nxdlformat.xsl"?>
<!--
# NeXus - Neutron and X-ray Common Data Format
#
# Copyright (C) 2014-2024 NeXus International Advisory Committee (NIAC)
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# For further information, see http://www.nexusformat.org
-->
<definition xmlns="http://definition.nexusformat.org/nxdl/3.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" category="base" type="group" name="NXidentifier" extends="NXobject" xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd">
<doc>
An identifier for a (persistent) resource, e.g., a DOI or orcid.
</doc>
<field name="service" type="NX_CHAR">
<doc>
The service by which the resource can be resolved.

Examples: doi, urn, hdl, purl, orcid, iso, url
</doc>
</field>
<field name="identifier" type="NX_CHAR">
<doc>
The unique code, IRI or hash to resolve this reference.
Typically, this is stated by the service which is considered a complete
identifier, e.g., for a DOI it's something of the form `10.1107/S1600576714027575`
or `https://doi.org/10.1107/S1600576714027575`, which are both resolvable.
</doc>
</field>
<field name="is_persistent" type="NX_BOOLEAN">
<doc>
True if the identifier is persistent (i.e., unique and available indefinitely),
False otherwise.
</doc>
</field>
</definition>

0 comments on commit e0b24a6

Please sign in to comment.