From c3c815555163d2712500249388dd9bfd5f194736 Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Wed, 7 Nov 2018 11:19:51 +0100 Subject: [PATCH] =?UTF-8?q?Erg=C3=A4nze=20Schemata=20f=C3=BCr=20METS-AP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/instance/schema/diglib-rightsmd.rnc | 52 ++++++++++++++++++++++ public/instance/schema/diglib-structmd.rnc | 12 +++++ 2 files changed, 64 insertions(+) create mode 100644 public/instance/schema/diglib-rightsmd.rnc create mode 100644 public/instance/schema/diglib-structmd.rnc diff --git a/public/instance/schema/diglib-rightsmd.rnc b/public/instance/schema/diglib-rightsmd.rnc new file mode 100644 index 000000000..ce48baaa7 --- /dev/null +++ b/public/instance/schema/diglib-rightsmd.rnc @@ -0,0 +1,52 @@ +# Administrative Metadaten +# +# Autor: David Maus <maus@hab.de> +# Timestamp: <2018-11-07 11:15:49 maus> +# + +namespace dct = "http://purl.org/dc/terms/" +namespace foaf = "http://xmlns.com/foaf/0.1/" +namespace marcrel = "http://id.loc.gov/vocabulary/relators/" +namespace owl = "http://www.w3.org/2002/07/owl#" +namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" +namespace skos = "http://www.w3.org/2004/02/skos/core#" + +start = element rdf:Description { + element dct:relation { + element foaf:Project { + model.Entity + } + }? + & element dct:rightsHolder { + element dct:Agent { + model.Entity + } + }? + & element dct:rights { + element dct:RightsStatement { + model.Entity + } + }? + & element dct:license { + element dct:LicenseDocument { + model.Entity + } + } + & element marcrel:fnd { + element dct:Agent { + model.Entity + } + }* +} + +model.Entity = + element owl:sameAs { + attribute rdf:resource { xsd:anyURI } + }* + & element foaf:homepage { + attribute rdf:resource { xsd:anyURI } + }? + & element skos:prefLabel { + attribute xml:lang { xsd:language }? + & text + }+ \ No newline at end of file diff --git a/public/instance/schema/diglib-structmd.rnc b/public/instance/schema/diglib-structmd.rnc new file mode 100644 index 000000000..9d3f2eee0 --- /dev/null +++ b/public/instance/schema/diglib-structmd.rnc @@ -0,0 +1,12 @@ +# RelaxNG für deskriptive Metadaten von Objektstrukturen +# +# Autor: David Maus <maus@hab.de> +# Timestamp: <2018-09-21 12:13:22 maus> +# + +namespace diglib = "http://uri.hab.de/ontology/diglib-struct#" +namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" + +start = element rdf:Description { + element diglib:* { text }+ +} \ No newline at end of file -- GitLab