Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 241ac684f56e079ab92b6dad2e1173e29ba516d7 David Maus committed Feb 9, 2017
@@ -0,0 +1,2 @@
+examples/*.rdf
+/output/
@@ -0,0 +1,5 @@
+rng:
+ trang -I rnc -O rng src/schema/emblem2rdf.rnc src/schema/emblem2rdf.rng
+clean:
+ rm -f output/emblems.*
+ rm -f output/emblems/*
@@ -0,0 +1,7 @@
+#+TITLE: The Wolfenbüttel emblem2rdf pipeline
+#+AUTHOR: David Maus
+#+DATE: 2017-02-09
+
+*emblem2rdf* is an XProc processing pipeline that converts emblem book descriptions into RDF following the Wolfenbüttel
+Core Emblem Ontology (to be published). The pipeline is developed at the [[http://www.hab.de][Herzog August Bibliothek Wolfenbüttel]] in the
+course of the DFG-funded project [[http://gepris.dfg.de/gepris/projekt/265430826][Emblematica Online - Linked Open Emblem Data]].
Oops, something went wrong.
Oops, something went wrong.
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xml:base="http://uri.hab.de/ontology/emblem"
+ xmlns:foaf="http://xmlns.com/foaf/0.1/"
+ xmlns:dct="http://purl.org/dc/terms/"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
+
+ <rdf:Description rdf:about="">
+ <dct:creator rdf:parseType="Collection">
+ <foaf:Person>
+ <foaf:name>Monika Biel</foaf:name>
+ <foaf:mbox rdf:resource="mailto:biel@hab.de"/>
+ </foaf:Person>
+ <foaf:Person>
+ <foaf:name>David Maus</foaf:name>
+ <foaf:mbox rdf:resource="mailto:maus@hab.de"/>
+ </foaf:Person>
+ <foaf:Person>
+ <foaf:name>Thomas Stäcker</foaf:name>
+ <foaf:mbox rdf:resource="mailto:staecker@hab.de"/>
+ </foaf:Person>
+ </dct:creator>
+ <dct:title xml:lang="en">Wolfenbüttel Core Emblem Ontology</dct:title>
+ <dct:title xml:lang="de">Wolfenbütteler Kernontologie für Embleme</dct:title>
+ <dct:created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2016-07-07</dct:created>
+ <dct:relation>
+ <foaf:Project>
+ <dct:title xml:lang="de">Emblematica Online - Linked Open Emblem Data</dct:title>
+ <dct:title xml:lang="en">Emblematica Online - Linked Open Emblem Data</dct:title>
+ <foaf:homepage rdf:resource="http://diglib.hab.de?link=016"/>
+ <rdfs:seeAlso rdf:resource="http://gepris.dfg.de/gepris/project/265430826"/>
+ </foaf:Project>
+ </dct:relation>
+ </rdf:Description>
+
+ <rdfs:Class rdf:about="#Motto"/>
+
+ <rdfs:Class rdf:about="#Subscriptio"/>
+
+ <rdfs:Class rdf:about="#Commentatio"/>
+
+ <rdfs:Class rdf:about="#Pictura"/>
+
+ <rdfs:Class rdf:about="#Emblem"/>
+
+ <rdfs:Property rdf:about="#hasContent">
+ <rdfs:domain rdf:resource="#Motto"/>
+ <rdfs:domain rdf:resource="#Subscriptio"/>
+ <rdfs:domain rdf:resource="#Commentatio"/>
+ <rdfs:range rdf:resource="http://www.w3.org/2011/content#Content"/>
+ </rdfs:Property>
+
+ <rdfs:Property rdf:about="#hasNormalization">
+ <rdfs:domain rdf:resource="http://www.w3.org/2011/content#Content"/>
+ <rdfs:range rdf:resource="http://www.w3.org/2011/content#Content"/>
+ </rdfs:Property>
+
+ <rdfs:Property rdf:about="#hasPart">
+ <rdfs:subPropertyOf rdf:resource="http://purl.org/dc/terms/hasPart"/>
+ </rdfs:Property>
+
+</rdf:RDF>
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF xml:base="http://uri.hab.de/ontology/emblem"
+ xmlns:dct="http://purl.org/dc/terms/"
+ xmlns:foaf="http://xmlns.com/foaf/0.1/"
+ xmlns:cnt="http://www.w3.org/2011/content#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
+
+ <rdf:Description rdf:about="">
+ <dct:title xml:lang="en">Wolfenbüttel Core Emblem Ontology</dct:title>
+ <dct:creator>
+ <foaf:Person>
+ <foaf:name>Monika Biel</foaf:name>
+ <foaf:email rdf:resource="mailto:biel@hab.de"/>
+ </foaf:Person>
+ </dct:creator>
+ <dct:creator>
+ <foaf:Person rdf:about="https://orcid.org/0000-0001-9292-5673">
+ <foaf:name>David Maus</foaf:name>
+ <foaf:mbox rdf:resource="mailto:maus@hab.de"/>
+ </foaf:Person>
+ </dct:creator>
+ <dct:creator>
+ <foaf:Person rdf:about="https://orcid.org/0000-0002-1509-6960">
+ <foaf:name>Thomas Stäcker</foaf:name>
+ <foaf:mbox rdf:resource="mailto:staecker@hab.de"/>
+ </foaf:Person>
+ </dct:creator>
+ </rdf:Description>
+
+ <rdfs:Class rdf:about="#Emblem">
+ <rdfs:label>Emblem</rdfs:label>
+ <rdfs:comment xml:lang="de">
+ Das Emblem oder Sinnbild (ca. 1531-1750) ist eine bimediale Gattung, die in einem Zusammenspiel von Wort und Bild
+ komplexe Aspekte der zeitgenössischen Kultur in einem kompakten und überzeugenden Format zum Ausdruck bringt und
+ erläutert. Der Begriff des "Emblems" wurde zuerst in diesem Sinne von Andrea Alciato - dem anerkannten Begründer
+ der Gattung - in seinem Emblematum Liber (Augsburg: Steyner, 1531) verwendet. Das Emblem besteht üblicherweise aus
+ drei Bestandteilen: Dem Motto (Inscriptio, Lemma) – einem kurzen Sinnspruch; der Pictura (Icon, Imago, auch
+ Symbolon) – einer bildlichen Darstellung – und der Subscriptio oder dem Epigram – einem meist metrischen Text. In
+ einem Emblem können sowohl alle als auch nur einzelne Bestandteile und auch mehr als einer von jedem von ihnen
+ vorhanden sein.
+ </rdfs:comment>
+ <rdfs:comment xml:lang="en">
+ The Emblem or Sinnbild (ca. 1531-1750) is a bimedial genre, combining texts and images to express and illustrate
+ complex aspects of contemporary culture in a compact and compelling format. The term “emblem” was first used with
+ this sense by Andrea Alciato, in his Emblematum Liber (Augsburg: Steyner, 1531), who is acknowledged as the
+ founder of the genre. Typically an emblem consists of a motto, an often puzzling image called the pictura, and a
+ subtext called a subscriptio or epigram. In any given emblem all or only some of these may be present, as may more
+ than one of each.
+ </rdfs:comment>
+ </rdfs:Class>
+
+ <rdfs:Class rdf:about="#EmblemPart"/>
+ <rdfs:Class rdf:about="#EmblemTextPart">
+ <rdfs:subClassOf rdf:resource="#EmblemPart"/>
+ </rdfs:Class>
+
+ <rdfs:Class rdf:about="#Motto">
+ <rdfs:subClassOf rdf:resource="#EmblemTextPart"/>
+ <rdfs:label>Motto</rdfs:label>
+ <rdfs:comment xml:lang="de">
+ Motto (Inscriptio, Lemma) ist ein kurzer Sinnspruch aus kanonischen Texten antiker Schriftsteller oder der Bibel.
+ </rdfs:comment>
+ <rdfs:comment xml:lang="en">
+ Motto (Inscriptio, Lemma) is a short aphorism from canonical texts of ancient writers or the Bible.
+ </rdfs:comment>
+ </rdfs:Class>
+
+ <rdfs:Class rdf:about="#Subscriptio">
+ <rdfs:subClassOf rdf:resource="#EmblemTextPart"/>
+ <rdfs:label>Subscriptio</rdfs:label>
+ <rdfs:comment xml:lang="de">
+ Die Subscriptio oder Epigram ist ein meist metrischer Text (häufig in epigrammatischer Form), der als Verbindung
+ zum Motto und Pictura in Betracht gezogen werden kann.
+ </rdfs:comment>
+ <rdfs:comment xml:lang="en">
+ The Subscriptio or Epigram, usually in verse, to be considered in conjunction with the motto and pictura.
+ </rdfs:comment>
+ </rdfs:Class>
+
+ <rdfs:Class rdf:about="#Pictura">
+ <rdfs:subClassOf rdf:resource="#EmblemPart"/>
+ <rdfs:label>Pictura</rdfs:label>
+ <rdfs:comment xml:lang="de">
+ Die Pictura (Icon, Imago oder Symbolon) kann sinndeutende, symbolische und allegorische Elemente enthalten und im
+ inhaltlichen Bezug zum Motto und zur Subscriptio stehen. In der Pictura können sich auch andere Elemente des
+ Emblems befinden, wie z.B. das Motto.
+ </rdfs:comment>
+ <rdfs:comment xml:lang="en">
+ The Pictura (Icon, Imago or Symbolon) may contains meaningful, symbolic and allegorical elements and providing the
+ visual as opposed to verbal element. Other elements from an emblem may be found in the pictura, e.g. motto.
+ </rdfs:comment>
+ </rdfs:Class>
+
+ <rdfs:Class rdf:about="#TextSegment"/>
+
+ <rdfs:Property rdf:about="#hasPart">
+ <rdfs:subPropertyOf rdf:resource="http://purl.org/dc/terms/hasPart"/>
+ <rdfs:range rdf:resource="#EmblemPart"/>
+ <rdfs:domain rdf:resource="#Emblem"/>
+ </rdfs:Property>
+
+ <rdf:Property rdf:about="#hasTextSegment">
+ <rdfs:subPropertyOf rdf:resource="http://purl.org/dc/terms/hasPart"/>
+ <rdfs:domain rdf:resource="#EmblemTextPart"/>
+ <rdfs:range rdf:resource="#TextSegment"/>
+ </rdf:Property>
+
+ <rdfs:Property rdf:about="#isShownBy">
+ <rdfs:seeAlso rdf:resource="http://www.europeana.eu/schemas/edm/isShownBy"/>
+ </rdfs:Property>
+
+ <rdfs:Property rdf:about="#isShownAt">
+ <rdfs:seeAlso rdf:resource="http://www.europeana.eu/schemas/edm/isShownAt"/>
+ </rdfs:Property>
+
+</rdf:RDF>
@@ -0,0 +1,5 @@
+
+include "emblem-light/src/default.rnc" {
+ start = emblem
+}
+
@@ -0,0 +1,101 @@
+# Emblem Schema Light
+#
+# Author: David Maus <maus@hab.de>
+# Timestamp: <2017-02-02 06:58:34 dmaus>
+#
+# A simplified variant of the Emblem Schema, based on the Emblem
+# Schema v1.2 and developed as part of the Wolfenbüttel emblem2rdf
+# pipeline.
+#
+# Copyright (c) 2016 by David Maus <maus@hab.de>
+#
+
+default namespace = "http://diglib.hab.de/rules/schema/emblem"
+
+namespace tei = "http://www.tei-c.org/ns/1.0"
+namespace xlink = "http://www.w3.org/1999/xlink"
+namespace skos = "http://www.w3.org/2004/02/skos/core#"
+namespace emblem = "http://diglib.hab.de/rules/schema/emblem"
+
+# Extensionpoints start
+
+foreignBibliographicDescription = empty
+foreignContentRepresentation = empty
+
+picturaMediaList = "drawing" | "engraving" | "etching" | "other" | "painting" | "woodcut"
+
+# Extension points end
+
+attribute.link =
+ attribute xlink:href { xsd:anyURI }?,
+ attribute page { xsd:token }?
+
+attribute.globalID = attribute globalID { xsd:anyURI }?
+
+attribute.lang = attribute xml:lang { xsd:language }?
+
+biblioDesc = element biblioDesc {
+ biblioDesc.attributes,
+ biblioDesc.content
+}
+biblioDesc.attributes = empty
+biblioDesc.content =
+ foreignBibliographicDescription,
+ emblem*
+
+emblem = element emblem {
+ emblem.attributes,
+ emblem.content
+}
+emblem.attributes = attribute.globalID
+emblem.content =
+ motto+,
+ pictura*,
+ subscriptio*
+
+motto = element motto {
+ motto.attributes,
+ motto.content
+}
+motto.attributes = attribute.globalID
+motto.content = transcription*
+
+pictura = element pictura {
+ pictura.attributes,
+ pictura.content
+}
+pictura.attributes =
+ attribute.globalID,
+ attribute.link,
+ attribute medium { picturaMediaList }?
+
+pictura.content = iconclass*
+
+iconclass = element iconclass {
+ element skos:notation { text },
+ element skos:prefLabel {
+ attribute xml:lang { xsd:language }?
+ }*,
+ element keyword {
+ attribute xml:lang { xsd:language },
+ text
+ }
+}
+
+subscriptio = element subscriptio {
+ subscriptio.attributes,
+ subscriptio.content
+}
+subscriptio.attributes =
+ attribute.globalID
+subscriptio.content =
+ transcription*
+
+transcription = element transcription {
+ transcription.attributes,
+ transcription.content
+}
+transcription.attributes =
+ attribute.link,
+ attribute.lang
+transcription.content = foreignContentRepresentation?
@@ -0,0 +1,21 @@
+# Prepare the TEI schema for inclusion.
+
+namespace tei = "http://www.tei-c.org/ns/1.0"
+
+include "foreign/teisimple.rnc" {
+ # Otherwise I get
+ #
+ # foreign/mods-3-6.rnc:604:3: error: conflicting ID-types for
+ # attribute "id" from namespace
+ # "http://www.w3.org/XML/1998/namespace" of element "rhyme"
+ # from namespace "http://www.tei-c.org/ns/1.0"
+ #
+ # Cf. RelaxNG Book?
+ att.global.attribute.xmlid = attribute xml:id { text }?
+ # Dto.? Redefine macro.anyXML
+ macro.anyXML =
+ element * - (tei:* | egXML) {
+ attribute * - ID { text }*,
+ (text | macro.anyXML)*
+ }
+}
@@ -0,0 +1,21 @@
+namespace tei = "http://www.tei-c.org/ns/1.0"
+
+include "core.rnc" {
+ foreignBibliographicDescription |= grammar {
+ include "foreign/mods-3-6.rnc" {
+ start = mods
+ }
+ }
+ foreignBibliographicDescription |= grammar {
+ include "default-teisimple.rnc" {
+ start = teiHeader
+ }
+ }
+ foreignContentRepresentation |= grammar {
+ include "default-teisimple.rnc" {
+ start = p
+ }
+ }
+}
+
+start = biblioDesc
Oops, something went wrong.

0 comments on commit 241ac68

Please sign in to comment.