Lobid to schema.org
About this wiki page
This page is looking into what and how information from the rdf behind lobid.org can be expressed using schema.org.
To Do:
- Add serials example
- Add service example (see https://wiki1.hbz-nrw.de/pages/viewpage.action?pageId=5144604 )
Description of an edition/manifestation
Current edition/manifestation description in lobid.org
Getting the data with curl: curl -H "Accept: text/turtle" --data-urlencode 'query= DESCRIBE <http://lobid.org/resource/HT014576567> ' http://lobid.org/sparql/
<http://lobid.org/resource/HT014576567> <http://iflastandards.info/ns/isbd/elements/P1004> "System und Performanz" ; <http://iflastandards.info/ns/isbd/elements/P1006> "symboltheoretische Grundlagen von Medientheorie und Sprachwissenschaft" ; <http://purl.org/dc/terms/title> "System und Performanz : symboltheoretische Grundlagen von Medientheorie und Sprachwissenschaft" ; <http://iflastandards.info/ns/isbd/elements/P1016> "Weilerswist" ; <http://iflastandards.info/ns/isbd/elements/P1017> "Velbrück Wiss." ; <http://iflastandards.info/ns/isbd/elements/P1053> "337 S." ; <http://purl.org/dc/elements/1.1/creator> <http://d-nb.info/gnd/115875549> ; <http://purl.org/dc/terms/issued> "2005" ; <http://purl.org/dc/terms/language> <http://id.loc.gov/vocabulary/iso639-2/deu> ; <http://purl.org/dc/terms/publisher> _:b138c8c010000004d ; <http://purl.org/dc/terms/subject> <http://d-nb.info/gnd/4054498-9>, <http://d-nb.info/gnd/4074250-7>, <http://d-nb.info/gnd/4128325-9> ; <http://purl.org/ontology/bibo/edition> "1. Aufl." ; <http://purl.org/ontology/bibo/isbn10> "3938808004" ; <http://purl.org/ontology/bibo/isbn13> "9783938808009" ; <http://purl.org/vocab/frbr/core#exemplar> <http://lobid.org/item/HT014576567%3A2005%279554>, <http://lobid.org/item/HT014576567%3A34A3661>, <http://lobid.org/item/HT014576567%3AAF565+S841>, <http://lobid.org/item/HT014576567%3ABFA7049>, <http://lobid.org/item/HT014576567%3ABFJ3>, <http://lobid.org/item/HT014576567%3AHWB25011>, <http://lobid.org/item/HT014576567%3AK+VII+S+1800>, <http://lobid.org/item/HT014576567%3AKLE1476>, <http://lobid.org/item/HT014576567%3ANK5649>, <http://lobid.org/item/HT014576567%3AXXXVIII+a+292>, <http://lobid.org/item/HT014576567%3Adeu+213-28> ; <http://rdvocab.info/RDARelationshipsWEMI/workManifested> <http://openlibrary.org/works/OL13337580W> ; a <http://purl.org/dc/terms/BibliographicResource>, <http://purl.org/ontology/bibo/Book>, <http://purl.org/vocab/frbr/core#Manifestation> ; <http://www.w3.org/2007/05/powder-s#describedby> <http://lobid.org/resource/HT014576567/about> ; <http://xmlns.com/foaf/0.1/isPrimaryTopicOf> <http://193.30.112.134/F/?func=find-c&ccl_term=IDN%3DHT014576567> .
Describing edition/manifestation using schema.org
@prefix schema: <http://schema.org/> . <http://lobid.org/resource/HT014576567> schema:name "System und Performanz : symboltheoretische Grundlagen von Medientheorie und Sprachwissenschaft" ; schema:publisher "Velbrück Wiss." ; schema:numberOfPages "337 S." ; # schema.org recommends using integers, thus the 'S.' should be omitted. schema:creator <http://d-nb.info/gnd/115875549> ; schema:datePublished "2005" ; schema:inLanguage <http://id.loc.gov/vocabulary/iso639-2/deu> ; # schema.org recommends using text (IETF BCP 47 standard) not URIs. Accordingly, schema:inLanguage is owl:DatatypeProperty in schema.org owl version at http://schema.org/docs/schemaorg.owl schema:about <http://d-nb.info/gnd/4054498-9>, <http://d-nb.info/gnd/4074250-7>, <http://d-nb.info/gnd/4128325-9> ; schema:bookEdition "1. Aufl." ; schema:isbn "3938808004" ; schema:gtin13 "9783938808009" ; a schema:Book . # No equivalent Class to <http://purl.org/vocab/frbr/core#Manifestation> in schema.org.
What cannot be described of an edition/manifestation using schema.org
(respectively it isn't clear how to describe with schema.org)
<http://lobid.org/resource/HT014576567> <http://iflastandards.info/ns/isbd/elements/P1004> "System und Performanz" ; # No equvalent to isbd:P1004 "title proper" in schema.org <http://iflastandards.info/ns/isbd/elements/P1006> "symboltheoretische Grundlagen von Medientheorie und Sprachwissenschaft" ; # No equivalent property to isbd:P1006 "has other title information" <http://iflastandards.info/ns/isbd/elements/P1016> "Weilerswist" ; # No equivalent propert to isbd:P1016 "has place of publication, production, distribution" in schema.org. <http://purl.org/vocab/frbr/core#exemplar> <http://lobid.org/item/HT014576567%3A2005%279554>, <http://lobid.org/item/HT014576567%3A34A3661>, <http://lobid.org/item/HT014576567%3AAF565+S841>, <http://lobid.org/item/HT014576567%3ABFA7049>, <http://lobid.org/item/HT014576567%3ABFJ3>, <http://lobid.org/item/HT014576567%3AHWB25011>, <http://lobid.org/item/HT014576567%3AK+VII+S+1800>, <http://lobid.org/item/HT014576567%3AKLE1476>, <http://lobid.org/item/HT014576567%3ANK5649>, <http://lobid.org/item/HT014576567%3AXXXVIII+a+292>, <http://lobid.org/item/HT014576567%3Adeu+213-28> ; # No equivalent property to frbr:exemplar in schema.org. <http://rdvocab.info/RDARelationshipsWEMI/workManifested> <http://openlibrary.org/works/OL13337580W> ; # No equivalent property to rdrel:workManifested in schema.org. <http://xmlns.com/foaf/0.1/isPrimaryTopicOf> <http://193.30.112.134/F/?func=find-c&ccl_term=IDN%3DHT014576567> # How do I state this in schema.org? Is schema:url the right choice? See also the threat "Meaning of property "url"" on public-vocabs mailing list. Martin Hepp's question in http://lists.w3.org/Archives/Public/public-vocabs/2012Oct/0045.html are still not answered:
Regarding the publisher, we also use a blank node solution in the triple store that works like this:
<http://lobid.org/resource/HT014576567> <http://purl.org/dc/terms/publisher> [ a <http://xmlns.com/foaf/0.1/Organisation> ; <http://xmlns.com/foaf/0.1/name> "Velbr\u00FCck Wiss." ; <http://www.w3.org/2003/01/geo/wgs84_pos#location> [ a <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing> ; <http://www.geonames.org/ontology#name> "Weilerswist" ] ] .
This could easier be translated to schema.org:
@prefix schema: <http://schema.org/> . <http://lobid.org/resource/HT014576567> schema:publisher [ a schema:Organization ; schema:name "Velbrück Wiss." ; schema:location [ a schema:Place ; schema:name "Weilerswist" ] ] .
Description of an item
Current item description in lobid.org
Getting the data with curl: curl -L -H "Accept: text/turtle" http://lobid.org/item/HT014576567%3AHWB25011
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix frbr: <http://purl.org/vocab/frbr/core#> . @prefix daia: <http://purl.org/ontology/daia/> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . <http://lobid.org/item/HT014576567%3AHWB25011> daia:label "HWB25011" ; frbr:exemplarOf <http://lobid.org/resource/HT014576567> ; frbr:owner <http://lobid.org/organisation/DE-294> ; a frbr:Item ; foaf:isPrimaryTopicOf <https://opac.ub.ruhr-uni-bochum.de/webOPACClient/start.do?Language=De&Query=010%3D%22HT014576567%22> .
Describing item using schema.org
As far as I can see, only the two links to the webpages describing the item might be expressed with schema.org using schema:url (although this is still unclear):
@prefix schema: <http://schema.org/> . <http://lobid.org/item/HT014576567%3AHWB25011> schema:url <http://lobid.org/resource/HT014576567/about> , <https://opac.ub.ruhr-uni-bochum.de/webOPACClient/start.do?Language=De&Query=010%3D%22HT014576567%22> .
Taking into account the "Holdings via Offer" approach, this could look like:
@prefix schema: <http://schema.org/> . <http://lobid.org/item/HT014576567%3AHWB25011> a schema:Offer ; schema:businessFunction <http://purl.org/goodrelations/v1#LeaseOut> ; schema:sku "HWB25011" ; schema:itemOffered <http://lobid.org/resource/HT014576567> ; schema:seller <http://lobid.org/organisation/DE-294> .
Description of a library
Current library description in lobid.org
Getting the data with curl: curl -L -H "Accept: text/turtle" http://lobid.org/organisation/DE-294
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix dct: <http://purl.org/dc/terms/> . @prefix mo: <http://purl.org/ontology/mo/> . @prefix gn: <http://www.geonames.org/ontology#> . @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> . @prefix vcard: <http://www.w3.org/2006/vcard/ns#> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix org: <http://www.w3.org/ns/org#> . @prefix lv: <http://lobid.org/vocab/lobid#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . <http://lobid.org/organisation/DE-294> lv:contactqr <http://lobid.org/media/DE-294_contactqr.png> ; dct:identifier "DE-294" ; mo:wikipedia <http://de.wikipedia.org/wiki/Universit\u00E4tsbibliothek_Bochum> ; gn:locatedIn <http://sws.geonames.org/6553132/> ; a foaf:Organization ; rdfs:seeAlso <http://de.dbpedia.org/resource/Universit\u00E4tsbibliothek_Bochum> ; geo:location [ a geo:SpatialThing ; geo:lat "51.4461510" ; geo:long "7.2624890" ] ; vcard:adr [ a vcard:Address, vcard:Work ; vcard:country-name "Germany" ; vcard:locality "Bochum" ; vcard:postal-code "44801" ; vcard:street-address "Universitätsstr. 150" ] ; vcard:email <mailto:benutzung.ub@ruhr-uni-bochum.de> ; vcard:tel [ a vcard:Voice, vcard:Work ; rdf:value "(0234) 32-26270" ], [ a vcard:Fax, vcard:Work ; rdf:value "(0234) 32-14737" ] ; vcard:url <http://www.ub.ruhr-uni-bochum.de> ; org:linkedTo <http://lobid.org/organisation/DE-605> ; foaf:isPrimaryTopicOf <http://dispatch.opac.d-nb.de/DB=1.2/CMD?ACT=SRCHA&IKT=8529&TRM=DE-294> ; foaf:name "Ruhr-Universität Bochum, Universitätsbibliothek" .
Describing a library using schema.org
@prefix schema: <http://schema.org/> . <http://lobid.org/organisation/DE-294> schema:location <http://sws.geonames.org/6553132/> ; a schema:Organization ; schema:location [ a schema:GeoCoordinates ; schema:latitude "51.4461510" ; schema:longitude "7.2624890" ] ; schema:address [ a schema:PostalAddress ; schema:addressCountry "Germany" ; schema:addressLocality "Bochum" ; schema:postalCode "44801" ; schema:streetAddress "Universitätsstr. 150" ] ; schema:email <mailto:benutzung.ub@ruhr-uni-bochum.de> ; schema:telelephone "(0234) 32-26270" ; schema:faxNumber "(0234) 32-14737" ] ; schema:url <http://www.ub.ruhr-uni-bochum.de> ; schema:url <http://dispatch.opac.d-nb.de/DB=1.2/CMD?ACT=SRCHA&IKT=8529&TRM=DE-294> ; schema:name "Ruhr-Universität Bochum, Universitätsbibliothek" .
- Links to library services could be added using schema:hasPOS.
What cannot be described of a library using schema.org
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix dct: <http://purl.org/dc/terms/> . @prefix mo: <http://purl.org/ontology/mo/> . @prefix gn: <http://www.geonames.org/ontology#> . @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> . @prefix vcard: <http://www.w3.org/2006/vcard/ns#> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix org: <http://www.w3.org/ns/org#> . @prefix lv: <http://lobid.org/vocab/lobid#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . <http://lobid.org/organisation/DE-294> <http://lobid.org/organisation/DE-294> lv:contactqr <http://lobid.org/media/DE-294_contactqr.png> ; dct:identifier "DE-294" ; # Can be expressed with microdata using the 'itemid' attribute. mo:wikipedia <http://de.wikipedia.org/wiki/Universit\u00E4tsbibliothek_Bochum> ; # Might be expressed using schema:url but information gets lost. rdfs:seeAlso <http://de.dbpedia.org/resource/Universit\u00E4tsbibliothek_Bochum> ; # Might be expressed using schema:url but information gets lost. org:linkedTo <http://lobid.org/organisation/DE-605> ; # No equivalent property in schema.org for org:linkedTo. In lobid.org, this property is used to link institutions to a library service center/union catalog they are associated with.
Description of a service
Experimental description of a library service in lobid.org
See also the blog post How to describe library services?
@prefix gr: <http://purl.org/goodrelations/v1#> . @prefix dcmitype: <http://purl.org/dc/dcmitype/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix daia: <http://purl.org/ontology/daia/> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . <http://lobid.org/service/DE-294-servicetheke> a dcmitype:Service ; rdfs:label "Servicetheke der Universitätsbibliothek der Ruhr-Universität Bochum"@de ; daia:providedBy <http://lobid.org/organisation/DE-294> ; gr:hasOpeningHoursSpecification [ a gr:OpeningHoursSpecification ; gr:opens "08:00:00"^^xsd:time ; gr:closes "24:00:00"^^xsd:time ; gr:hasOpeningHoursDayOfWeek gr:Monday ; gr:hasOpeningHoursDayOfWeek gr:Tuesday ; gr:hasOpeningHoursDayOfWeek gr:Wednesday ; gr:hasOpeningHoursDayOfWeek gr:Thursday ; gr:hasOpeningHoursDayOfWeek gr:Friday ] , [ a gr:OpeningHoursSpecification ; gr:opens "11:00:00"^^xsd:time ; gr:closes "20:00:00"^^xsd:time ; gr:hasOpeningHoursDayOfWeek gr:Saturday ] , [ a gr:OpeningHoursSpecification ; gr:opens "11:00:00"^^xsd:time ; gr:closes "18:00:00"^^xsd:time ; gr:hasOpeningHoursDayOfWeek gr:Sunday ] .
Describing a library service using schema.org
@prefix schema: <http://schema.org/> . <http://lobid.org/service/DE-294-servicetheke> a schema:Place ; # Only works for spatiotemporal services & not for online services. schema:name "Servicetheke der Universitätsbibliothek der Ruhr-Universität Bochum"@de ; schema:openingHours "Mo,Tu,We,Th,Fr 08:00-24:00" , "Sa 11:00-20:00", "Su 11:00-18:00" .
What cannot be described of a library service using schema.org
<http://lobid.org/service/DE-294-servicetheke>
a dcmitype:Service ; # A schema:Service class doesn't exist. What to use instead? schema:Product might fit as it also covers "commodity services". daia:providedBy <http://lobid.org/organisation/DE-294> ; # No equivalent property in schema.org, schema:containedIn can be used in many cases.