diff --git a/public/instance/schema/diglib-rightsmd.rnc b/public/instance/schema/diglib-rightsmd.rnc new file mode 100644 index 0000000000000000000000000000000000000000..ce48baaa770cd0a1caf4a4813d9668d79136a0fd --- /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 0000000000000000000000000000000000000000..9d3f2eee0cc84fc1670e001f70a4c997de0393ae --- /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