Closed acka47 closed 9 years ago
This is the current JSON-LD context. It lists all 29 RDF properties currently used in lobid-organisations.
{
"@context": {
"xsd": "http://www.w3.org/2001/XMLSchema#",
"name": "http://xmlns.com/foaf/0.1/name",
"isil": "http://purl.org/lobid/lv#isil",
"prefLabel": "http://www.w3.org/2004/02/skos/core#prefLabel",
"altLabel": "http://www.w3.org/2004/02/skos/core#altLabel",
"location": {
"@id": "http://www.w3.org/2003/01/geo/wgs84_pos#location",
"@type": "@id"
},
"lat": "http://www.w3.org/2003/01/geo/wgs84_pos#lat",
"long": "http://www.w3.org/2003/01/geo/wgs84_pos#long",
"locatedIn": {
"@id": "http://www.geonames.org/ontology#locatedIn",
"@type": "@id"
},
"address": {
"@id": "http://www.w3.org/2006/vcard/ns#adr",
"@type": "@id"
},
"countryName": "http://www.w3.org/2006/vcard/ns#country-name",
"email": {
"@id": "http://www.w3.org/2006/vcard/ns#email",
"@type": "@id"
},
"locality": "http://www.w3.org/2006/vcard/ns#locality",
"postalCode": "http://www.w3.org/2006/vcard/ns#postal-code",
"streetAddress": "http://www.w3.org/2006/vcard/ns#street-address",
"url": {
"@id": "http://www.w3.org/2006/vcard/ns#url",
"@type": "@id"
},
"hasOpeningHoursSpecification": {
"@id": "http://purl.org/goodrelations/v1#hasOpeningHoursSpecification",
"@type": "@id"
},
"description": "http://purl.org/dc/terms/description",
"provides": {
"@id": "http://purl.org/ontology/daia/provides",
"@type": "@id"
},
"orgType": {
"@id": "http://www.w3.org/ns/org#classification",
"@type": "@id"
},
"fundertype": {
"@id": "http://purl.org/lobid/lv#fundertype",
"@type": "@id"
},
"stocksize": {
"@id": "http://purl.org/lobid/lv#stocksize",
"@type": "@id"
},
"subject": "http://purl.org/dc/elements/1.1/subject",
"linkedTo": {
"@id": "http://www.w3.org/ns/org#linkedTo",
"@type": "@id"
},
"sameAs": {
"@id": "http://www.w3.org/2002/07/owl#sameAs",
"@type": "@id"
},
"wikipedia": {
"@id": "http://purl.org/ontology/mo/wikipedia",
"@type": "@id"
},
"seeAlso": {
"@id": "http://www.w3.org/2000/01/rdf-schema#seeAlso",
"@type": "@id"
},
"contactqr": {
"@id": "http://purl.org/lobid/lv#contactqr",
"@type": "@id"
},
"isPrimaryTopicOf": {
"@id": "http://xmlns.com/foaf/0.1/isPrimaryTopicOf",
"@type": "@id"
},
"primaryTopic": {
"@id": "http://xmlns.com/foaf/0.1/primaryTopic",
"@type": "@id"
}
}
}
The following example nearly includes all properties from the JSON-LD context, except dcterms:subject
and skos:prefLabel
(is this used anywhere in lobid-organisations?).
<http://lobid.org/organisation/DE-1>
a <http://xmlns.com/foaf/0.1/Organization> ;
<http://www.w3.org/2000/01/rdf-schema#seeAlso>
<http://dbpedia.org/resource/Staatsbibliothek_zu_Berlin> ;
<http://purl.org/goodrelations/v1#hasOpeningHoursSpecification>
[ <http://purl.org/dc/terms/description>
"Mo-Fr 9.00-21.00, Sa 10.00-19.00"
] ;
<http://purl.org/lobid/lv#contactqr>
<http://lobid.org/media/DE-1_contactqr.png> ;
<http://purl.org/lobid/lv#fundertype>
<http://purl.org/lobid/fundertype#n07> ;
<http://purl.org/lobid/lv#isil>
"DE-1" ;
<http://purl.org/lobid/lv#stocksize>
<http://purl.org/lobid/stocksize#n10> ;
<http://purl.org/ontology/daia/provides>
<http://stabikat.de> ;
<http://purl.org/ontology/mo/wikipedia>
<http://de.wikipedia.org/wiki/Staatsbibliothek_zu_Berlin> ;
<http://www.geonames.org/ontology#locatedIn>
<http://sws.geonames.org/6547539> ;
<http://www.w3.org/2002/07/owl#sameAs>
<http://ld.zdb-services.de/resource/organisations/DE-1> ;
<http://www.w3.org/2003/01/geo/wgs84_pos#location>
[ <http://www.w3.org/2003/01/geo/wgs84_pos#lat>
"52.51755" ;
<http://www.w3.org/2003/01/geo/wgs84_pos#long>
"13.39162"
] ;
<http://www.w3.org/2004/02/skos/core#altLabel>
"Berlin SBB Haus Unter d.Linden" , "SBB-PK, Haus Unter d. Linden" ;
<http://www.w3.org/2006/vcard/ns#adr>
[ <http://www.w3.org/2006/vcard/ns#country-name>
"Germany" ;
<http://www.w3.org/2006/vcard/ns#locality>
"Berlin" ;
<http://www.w3.org/2006/vcard/ns#postal-code>
"10117" ;
<http://www.w3.org/2006/vcard/ns#street-address>
"Unter den Linden 8"
] ;
<http://www.w3.org/2006/vcard/ns#email>
<mailto:info@sbb.spk-berlin.de> ;
<http://www.w3.org/2006/vcard/ns#url>
<http://staatsbibliothek-berlin.de> ;
<http://www.w3.org/ns/org#classification>
<http://purl.org/lobid/libtype#n11> ;
<http://www.w3.org/ns/org#linkedTo>
<http://lobid.org/organisation/DE-601> ;
<http://xmlns.com/foaf/0.1/isPrimaryTopicOf>
<http://dispatch.opac.d-nb.de/DB=1.2/CMD?ACT=SRCHA&IKT=8529&TRM=DE-1> ;
<http://xmlns.com/foaf/0.1/name>
"Staatsbibliothek zu Berlin - Preußischer Kulturbesitz, Haus Unter den Linden" .
<http://lobid.org/organisation/DE-1/about>
<http://xmlns.com/foaf/0.1/primaryTopic>
<http://lobid.org/organisation/DE-1> .
Let's see how one could express the example above with schema.org:
@prefix schema: <http://schema.org/> .
<http://lobid.org/organisation/DE-1>
a schema:Library ; ## See https://github.com/lobid/lodmill/issues/509.
schema:sameAs
<http://dbpedia.org/resource/Staatsbibliothek_zu_Berlin> ;
schema:openingHoursSpecification
[ schema:description
"Mo-Fr 9.00-21.00, Sa 10.00-19.00"
] ;
# I'd say it is time to drop this contact QR code information...
# <http://purl.org/lobid/lv#contactqr>
# <http://lobid.org/media/DE-1_contactqr.png> ;
#
#
# The following properties are very specific and can't be replaced by schema.org:
<http://purl.org/lobid/lv#fundertype>
<http://purl.org/lobid/fundertype#n07> ;
<http://purl.org/lobid/lv#isil>
"DE-1" ;
<http://purl.org/lobid/lv#stocksize>
<http://purl.org/lobid/stocksize#n10> ;
<http://purl.org/ontology/daia/provides>
<http://stabikat.de> ; # Can't find a schema.org propertey that fits here.
schema:sameAs
<http://de.wikipedia.org/wiki/Staatsbibliothek_zu_Berlin> ; # Problem: using the same property as for DBpedia.
schema:containedIn
<http://sws.geonames.org/6547539> ;
schema:sameAs
<http://ld.zdb-services.de/resource/organisations/DE-1> ; (see above)
schema:geo
[ a schema:GeoCoordinates ;
schema:latitude
"52.51755" ;
schema:longitude
"13.39162"
] ;
schema:alternateName
"Berlin SBB Haus Unter d.Linden" , "SBB-PK, Haus Unter d. Linden" ;
schema:address
[ a schema:PostalAddress
schema:addressCountry
"Germany" ;
schema:addressLocality
"Berlin" ;
schema:postalCode
"10117" ;
schema:streetAddress
"Unter den Linden 8"
] ;
schema:email
<mailto:info@sbb.spk-berlin.de> ;
schema:url
<http://staatsbibliothek-berlin.de> ;
<http://www.w3.org/ns/org#classification>
<http://purl.org/lobid/libtype#n11> ;
<http://www.w3.org/ns/org#linkedTo>
<http://lobid.org/organisation/DE-601> ;
<http://xmlns.com/foaf/0.1/isPrimaryTopicOf>
<http://dispatch.opac.d-nb.de/DB=1.2/CMD?ACT=SRCHA&IKT=8529&TRM=DE-1> ; # schema:sameAs ?
schema:name
"Staatsbibliothek zu Berlin - Preußischer Kulturbesitz, Haus Unter den Linden" .
<http://lobid.org/organisation/DE-1/about>
<http://xmlns.com/foaf/0.1/primaryTopic>
<http://lobid.org/organisation/DE-1> . # schema:about ?
From the 29 properties currently listed in the organisation JSON-LD context:
lv:fundertype
, lv:isil
, lv:stocksize
, daia:provides
, org:classification
, org:linkedTo
, foaf:isPrimaryTopicOf
, foaf:primaryTopic
(the last one might be mapped to schema:about)dc:subject
) skos:prefLabel
)Re: dcterms:subject
and skos:prefLabel
: subjects are declared as dc-elements (NOT dc-terms). It's configured in morph https://github.com/lobid/lodmill/blob/master/lodmill-rd/src/main/resources/morph_zdb-isil-file-pica2ld.xml and you can search some data with curl -XGET -L 'http://quaoar1.hbz-nrw.de:9200/lobid-organisations/_search?q=@graph.http://purl.org/dc/elements/1.1/subject.@value:*' yielding 15k hits. prefLabel
don't exist.
@dr0i @acka47 Have a look at the new https://github.com/hbz/lobid-organisations repo. The resulting JSON-LD uses schema.org as its context, though the properties are not yet mapped to schma.org. Check out the result in the JSON-LD playground (see readme for details). I think it's the ideal place to evaluate using schema.org for organisation data.
This is actually done and could be closed. Leaving open until https://github.com/hbz/lobid-organisations is finalized.
Closing as the beta is running with schema.org data: http://beta.lobid.org/organisations
As we have to do some tweaking for organisation data in lobid anyway (https://github.com/lobid/lodmill/issues/486, ), we might think about switching to schema.org if it covers all our needs. Whether this is the case will be explored in this ticket.
This would have consequences on efforts on aligning RDF representation in lobid and ISIL registry (https://github.com/lobid/lodmill/issues/181), though.