Skip to content
Snippets Groups Projects
Commit 99261f28 authored by gakin's avatar gakin
Browse files

SSDM-2858 DLCM: Work on mixing DC schema with a new one: Initial schema with an example XML

SVN: 35264
parent 6c530a93
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:sisterms="http://www.cisd.ethz.ch/software/openBIS/sisterms/"
xmlns="http://www.cisd.ethz.ch/software/openBIS/sis_dc/"
targetNamespace="http://www.cisd.ethz.ch/software/openBIS/sis_dc/"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation xml:lang="en">
SIS Qualified DC container XML Schema.
Created 2015-11-08
Created by Ganime Akin.
This schema declares a container element for a Qualified DC application.
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://purl.org/dc/elements/1.1/"
schemaLocation="http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd" />
<xs:import namespace="http://www.cisd.ethz.ch/software/openBIS/sisterms/"
schemaLocation="./sisterms.xsd" />
<xs:element name="sisdc" type="sisterms:elementContainer" />
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:dc="http://purl.org/dc/elements/1.1/" targetNamespace="http://www.cisd.ethz.ch/software/openBIS/sisterms/"
xmlns="http://www.cisd.ethz.ch/software/openBIS/sisterms/"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation xml:lang="en">
Initial XML Schema for
exhanging openbis meta data
Created 2015-11-08
Created by Ganime Akin.
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/03/xml.xsd">
</xs:import>
<xs:import namespace="http://purl.org/dc/elements/1.1/"
schemaLocation="http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd" />
<!-- The following line defines the additional property used to describe
the workshop photos. -->
<xs:complexType name="properties">
<xs:sequence>
<xs:element name="property" maxOccurs="unbounded"
minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="code" />
<xs:element type="xs:string" name="value" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="assignedProperties" type="properties"></xs:element>
<xs:complexType name="dataSets">
<xs:sequence>
<xs:element name="dataSet" maxOccurs="unbounded"
minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="code" />
<xs:element type="xs:string" name="type" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="dataSets" type="dataSets"></xs:element>
<xs:group name="elementsGroup">
<xs:annotation>
<xs:documentation xml:lang="en">
This group is included as
a convenience for schema authors
who need to refer to all the DC and
SIS elements.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="dc:any" />
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="1">
<xs:element ref="assignedProperties" />
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="1">
<xs:element ref="dataSets" />
</xs:choice>
</xs:sequence>
</xs:group>
<xs:complexType name="elementContainer">
<xs:annotation>
<xs:documentation xml:lang="en">
This is included as a
convenience for schema authors who need to define
a root
or container
element for all of the DC and SIS elements.
</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:group ref="elementsGroup" />
</xs:choice>
</xs:complexType>
</xs:schema>
\ No newline at end of file
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<responseDate>2015-12-07T12:14:14Z</responseDate>
<request verb="GetRecord" identifier="20151102125112779-260663"
metadataPrefix="dlcm_dc">http://localhost</request>
<GetRecord>
<record>
<header>
<identifier>20151102125112779-260663</identifier>
<datestamp>2015-12-07T12:14:15Z</datestamp>
</header>
<metadata>
<sis_dc:sisdc xmlns:sis_dc="http://www.cisd.ethz.ch/software/openBIS/sis_dc/"
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sisterms="http://www.cisd.ethz.ch/software/openBIS/sisterms/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.cisd.ethz.ch/software/openBIS/sis_dc/ ./sis_dc.xsd">
<dc:identifier>S1</dc:identifier>
<dc:type>Sample</dc:type>
<dc:title>Experiment</dc:title>
<dc:creator>system</dc:creator>
<dc:description />
<dc:rights>CC_BY_ND</dc:rights>
<dc:subject>Anatomic Landmarks;A01.111</dc:subject>
<dc:source>
http://localhost/openbis/?viewMode=SIMPLE&amp;anonymous=true#entity=EXPERIMENT&amp;permId=20151102125112779-260663
</dc:source>
<dc:date>2015-11-02 12:51</dc:date>
<sisterms:assignedProperties>
<sisterms:property>
<sisterms:code>description</sisterms:code>
<sisterms:value>This is a test sample</sisterms:value>
</sisterms:property>
</sisterms:assignedProperties>
<sisterms:dataSets>
<sisterms:dataSet>
<sisterms:code>20150830130851963-33362</sisterms:code>
<sisterms:type>UNKNOWN</sisterms:type>
</sisterms:dataSet>
</sisterms:dataSets>
</sis_dc:sisdc>
</metadata>
</record>
</GetRecord>
</OAI-PMH>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment