Skip to content

Commit

Permalink
MET-6003 Edm schema changes for tombstone records
Browse files Browse the repository at this point in the history
  • Loading branch information
stzanakis committed Sep 9, 2024
1 parent 6e578c8 commit 817a940
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
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

0 comments on commit 817a940

Please sign in to comment.