Skip to content

Instantly share code, notes, and snippets.

@nichtich
Created November 1, 2011 21:33
Show Gist options
  • Save nichtich/1331983 to your computer and use it in GitHub Desktop.
Save nichtich/1331983 to your computer and use it in GitHub Desktop.
Simplified Ontology for Bibliographic Resources (sobr)
@prefix gnd: <http://d-nb.info/gnd/> .
@prefix daia: <http://purl.org/ontology/daia/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix sobr: <http://example.org/sobr/> .
# Work level
<http://d-nb.info/7739774-5> a bibo:Document,
schema:CreativeWork, foaf:Document, frbr:Endevaour ;
dct:title "Die Welt in 100 Jahren"@de ;
owl:sameAs <http://www.librarything.com/work/3100408> .
# see LibraryThing API to get this via title search
# Edition level
<http://d-nb.info/1002152135> a sobr:Edition ;
owl:sameAs <http://uri.gbv.de/document/gvk:ppn:619067829> .
# eki:619067829
# Item level
<http://uri.gbv.de/document/opac-de-18:epn:1117808157> a frbr:Item ;
daia:exemplarOf <http://d-nb.info/1002152135> .
<http://uri.gbv.de/document/opac-de-18:epn:1117888223> a frbr:Item ;
daia:exemplarOf <http://d-nb.info/1002152135> .
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix daia: <http://purl.org/ontology/daia/> .
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix frbr: <http://purl.org/vocab/frbr/core#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix sobr: <http://example.org/sobr/> . # NO URI NAMESPACE YET
# Emma Goldman's biography
<http://www.librarything.com/work/70394>
a bibo:Document, bibo:Book, dbo:Work, dbo:Book
owl:sameAs
<http://dbpedia.org/resource/Living_My_Life> ,
<http://d-nb.info/gnd/4449417-8> ;
sobr:edition
<http://d-nb.info/1001703464> , # German 2010 edition
<http://d-nb.info/550549544> , # German 1978-1980 Three-volume edition
sobr:editionPart
<http://www.worldcat.org/oclc/656754414> , # volume 1
<http://www.worldcat.org/oclc/500342792> . # volume 2
# German 2010 edition
<http://d-nb.info/1001703464>
a bibo:Document, bibo:Book, sobr:Edition ;
daia:editionOf <http://www.librarything.com/work/70394> ;
bibo:isbn13 "9783894017316" .
# English 1970 Two-volume edition, volume 1/2
<http://www.worldcat.org/oclc/656754414>
a bibo:Document, bibo:Book, sobr:Edition ;
bibo:isbn10 "0486225437" ;
owl:sameAs <http://www.librarything.com/work/74731> .
# English 1970 Two-volume edition, volume 2/2
<http://www.worldcat.org/oclc/500342792>
a bibo:Document, bibo:Book, sobr:Edition ;
bibo:isbn10 "0486225445" ;
owl:sameAs <http://www.librarything.com/work/660121> .
# German 1978-1980 Three-volume edition
<http://d-nb.info/550549544>
a bibo:Document, bibo:Collection, bibo:MultiVolumeBook, sobr:Edition ;
dcterms:hasPart
<http://d-nb.info/790042835> ,
<http://d-nb.info/801053447> ,
<http://d-nb.info/800071247> .
# German 1978-1980 Three-volume edition, volume 1/3
<http://d-nb.info/790042835>
a bibo:Document, bibo:Book, sobr:Edition ;
bibo:isbn10 "3879560692" .
# German 1978-1980 Three-volume edition, volume 2/3
<http://d-nb.info/801053447>
a bibo:Document, bibo:Book, sobr:Edition ;
bibo:isbn10 "3879560951" .
# German 1978-1980 Three-volume edition, volume 3/3
<http://d-nb.info/800071247>
a bibo:Document, bibo:Book, sobr:Edition ;
bibo:isbn10 "3879561117" .
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix daia: <http://purl.org/ontology/daia/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix frbr: <http://purl.org/vocab/frbr/core#> .
@prefix frbrer: <http://iflastandards.info/ns/fr/frbr/frbrer/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <http://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix sobr: <http://example.org/sobr/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
############################################################
# About this ontology
############################################################
sobr: a owl:Ontology;
rdfs:label "Simplified Ontology for Bibliographic Resources"@en ;
dct:created "2011-11-01"^^xsd:date ;
dct:description """While FRBR is too complex, the bibliographic Ontotology (BIBO)
and other ontologies do not really cover bibliographic resources as managed in
libraries. This ontology is probably the simplest ontology that could work.""" .
############################################################
# Classes
############################################################
sobr:Document a owl:Class ;
owl:equivalentClass
schema:CreativeWork, bibo:Document, foaf:Document, frbr:Endevaour ;
skos:altLabel "work"@en , "document"@en ;
dct:description "a document is anything perceived as a document"@en ;
rdfs:seeAlso <http://people.ischool.berkeley.edu/~buckland/whatdoc.html> ;
skos:scopeNote "this class includes both abstract works and concrete, possibly physical, documents"@en .
# by the way, collections can also be documents:
# bibo:Collection rdf:subClassOf bibo:Document .
sobr:Item a owl:Class ;
rdf:subClassOf sobr:Document ;
owl:equivalentClass frbr:Item ;
skos:altLabel "copy"@en , "holding"@en, "exemplar"@en, "item"@en ;
dct:description "a document that is a single copy"@en ;
skos:scopeNote "most items are physical copies, unique or exemplars of a document"@en .
# this class is disputable
sobr:Edition a owl:Class ;
rdf:subClassOf sobr:Document ;
owl:equivalentClass [ a owl:Class;
owl:unionOf (frbr:Expression frbr:Manifestation)
] ;
dct:description "a document that can exist in multiple copies"@en ;
skos:scopeNote
"every edition is edition-of some document but also a document by itself."@en .
############################################################
# Properties
############################################################
## Already defined in DAIA ontology:
daia:exemplar a owl:ObjectProperty ;
rdfs:domain bibo:Document ;
rdfs:range sobr:Item ;
owl:inverseOf daia:exemplarOf ;
rdfs:seeAlso frbr:exemplar .
daia:exemplarOf a owl:ObjectProperty ;
rdfs:domain frbr:Item ;
rdfs:range bibo:Document ;
owl:inverseOf daia:exemplar ;
rdfs:seeAlso frbr:isExemplarOf, frbrer:P2006 .
# { ?d daia:extract ?i } <=> { ?d dct:hasPart [ daia:exemplar ?i ] }"
daia:extract a owl:ObjectProperty ;
rdfs:domain bibo:Document ;
rdfs:range frbr:Item .
## Not defined yet:
sobr:edition a owl:ObjectProperty ;
rdfs:domain sobr:Document ;
rdfs:range sobr:Edition ;
owl:inverseOf sobr:editionOf .
sobr:editionOf a owl:ObjectProperty ;
rdfs:domain sobr:Edition ;
rdfs:range sobr:Document ;
owl:inverseOf sobr:edition ;
rdfs:seeAlso <http://www.freebase.com/schema/book/book_edition> .
# { ?D sobr:editionPart ?EP } <=> { ?D dcterms:hasPart [ sobr:edition ?EP ] } .
sobr:editionPart a owl:ObjectProperty ;
rdfs:domain sobr:Document ;
rdfs:range sobr:Edition .
############################################################
# Rules (to be discussed)
############################################################
# The exemplar of an edition is also exemplar of the edition's document.
# { ?edition sobr:editionOf ?work ; sobr:exemplar ?copy } => { ?work sobr:exemplar ?copy }
# If a document is both edition and exemplar of the same document, it is it's own exemplar.
# For instance you can view a museum object as object with only one copy (itself).
# { ?work sobr:edition ?both . ?work sobr:exemplar ?both } => { ?both sobr:exemplar ?both }
# The following rules are disputable:
# They can be assumed as always given because they add no information.
# Every edition is it's own edition
# { ?edition a sobr:Edition } => { ?edition sobr:edition ?edition } .
# Every item is it's own exemplar
# { ?copy a sobr:Item } => { ?copy sobr:exemplar ?copy } .
digraph {
document [label="Document"];
edition [label="Edition"];
exemplar [label="Item"];
edition -> document [arrowhead=empty];
exemplar -> document [arrowhead=empty];
document -> edition [label=edition];
document -> exemplar [label=exemplar];
}
@nichtich
Copy link
Author

By the way, SOBR does not accept disjointedness of bibo:Document and bibo:Collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment