Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MET-6003 Edm schema changes for tombstone records #12

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions src/main/resources/schema_xsds/AS.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:as="http://www.w3.org/ns/activitystreams#"
targetNamespace="http://www.w3.org/ns/activitystreams#">

<annotation>
<documentation>Europeana representation of AS elements
</documentation>
</annotation>

<import namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#" schemaLocation="RDF.xsd"/>

<element name="object" type="rdf:ResourceType">
</element>

<element name="context" type="rdf:ResourceType">
</element>

<element name="endTime" type="rdf:LiteralType">
</element>


<element name="Delete">
<complexType>
<annotation>
<documentation>The EDM representation of record deletion information</documentation>
</annotation>
<sequence>
<element ref="as:object" minOccurs="1" maxOccurs="1"/>
<element ref="as:context" minOccurs="1" maxOccurs="unbounded"/>
<element ref="as:endTime" minOccurs="1" maxOccurs="1"/>
</sequence>
</complexType>
</element>

</schema>
5 changes: 4 additions & 1 deletion src/main/resources/schema_xsds/EDM-INTERNAL-MAIN.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
xmlns:svcs="http://rdfs.org/sioc/services#"
xmlns:dqv="http://www.w3.org/ns/dqv#"
xmlns:doap="http://usefulinc.com/ns/doap#"
xmlns:sch="http://purl.oclc.org/dsdl/schematron">
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xmlns:as="http://www.w3.org/ns/activitystreams#">

<import namespace="http://purl.org/dc/elements/1.1/" schemaLocation="DC.xsd"/>
<import namespace="http://purl.org/dc/terms/" schemaLocation="DCTERMS.xsd"/>
Expand All @@ -33,6 +34,7 @@
<import namespace="http://rdfs.org/sioc/services#" schemaLocation="SVCS.xsd"/>
<import namespace="http://www.w3.org/ns/dqv#" schemaLocation="DQV.xsd"/>
<import namespace="http://usefulinc.com/ns/doap#" schemaLocation="DOAP.xsd"/>
<import namespace="http://www.w3.org/ns/activitystreams#" schemaLocation="AS.xsd"/>
<include schemaLocation="EDM-COMMON-MAIN.xsd"/>
<include schemaLocation="CONTEXTS.xsd"/>

Expand Down Expand Up @@ -66,6 +68,7 @@
<element ref="foaf:Organization" minOccurs="0" maxOccurs="unbounded"/>
<element ref="dcat:Dataset" minOccurs="0" maxOccurs="unbounded"/>
<element ref="svcs:Service" minOccurs="0" maxOccurs="unbounded"/>
<element ref="as:Delete" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>

Expand Down