-
Notifications
You must be signed in to change notification settings - Fork 7
sameas.org store datafaqs
timrdf edited this page Mar 16, 2013
·
16 revisions
- DataFAQs Core Services includes referencers, which can wrap sameas.org
- The best publication (as of Mar 2013; per Hugh) on sameas.org is here
This page discusses how DataFAQs can use sameas.org. It also has some notes on how sameas.org works and how to use it.
Thanks to Hugh Glaser and Ian Millard for my little corner of sameas.org, http://sameas.org/store/datafaqs/
http://sameas.org/?uri=http://dbpedia.org/resource/Edinburgh
Requesting without conneg gives 303 to HTML:
bash-3.2$ curl -LI http://sameas.org/?uri=http://dbpedia.org/resource/Edinburgh
HTTP/1.1 303 See Other
Location: http://sameas.org/html?uri=http%3A%2F%2Fdbpedia.org%2Fresource%2FEdinburgh
Content-Type: text/html; charset=UTF-8
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Requesting RDF/XML gives 303 to RDF/XML:
bash-3.2$ curl -LI -H "Accept: application/rdf+xml" http://sameas.org/?uri=http://dbpedia.org/resource/Edinburgh
HTTP/1.1 303 See Other
Location: http://sameas.org/rdf?uri=http%3A%2F%2Fdbpedia.org%2Fresource%2FEdinburgh
Content-Type: text/html; charset=UTF-8
HTTP/1.1 200 OK
Content-Type: application/rdf+xml
Requesting text/turtle gives 303 to HTML, but we can use rapper:
rapper -qg -o turtle http://sameas.org/?uri=http://dbpedia.org/resource/Edinburgh
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<http://dbpedialite.org/things/9602#id>
owl:sameAs <http://data.nytimes.com/N45752581330994625741>,
<http://data.nytimes.com/edinburgh_scotland_geo>,
<http://dbpedia.org/resource/Edinburgh>,
<http://dbpedialite.org/things/9602#id>,
<http://linkedgeodata.org/triplify/node/17898859#id>,
<http://linkedgeodata.org/triplify/node17898859>,
<http://mpii.de/yago/resource/Edinburgh>,
<http://ookaboo.com/o/pictures/topic/103961/Edinburgh>,
<http://openlylocal.com/id/councils/264>,
<http://rdf.freebase.com/ns/en.edinburgh>,
<http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000014ce7>,
<http://rdf.freebase.com/ns/m.02m77>,
<http://statistics.data.gov.uk/id/local-authority/00QP>,
<http://statistics.data.gov.uk/id/local-authority?name=Edinburgh%20City%20Council>,
<http://sw.opencyc.org/2008/06/10/concept/Mx4rvViI3ZwpEbGdrcN5Y29ycA>,
<http://sw.opencyc.org/2008/06/10/concept/en/CityOfEdinburghScotland>,
<http://sw.opencyc.org/concept/Mx4rvViI3ZwpEbGdrcN5Y29ycA>,
<http://sws.geonames.org/2650225/>,
<http://transport.data.gov.uk/id/local-authority/9230>,
<http://umbel.org/umbel/ne/wikipedia/Edinburgh> .
<http://sameas.org/rdf?uri=http%3A%2F%2Fdbpedialite.org%2Fthings%2F9602%23id>
dc:creator "sameAs.org" ;
dc:title "Co-references from sameAs.org for <http://dbpedialite.org/things/9602#id>" ;
dct:license <http://creativecommons.org/publicdomain/zero/1.0/> ;
foaf:primaryTopic <http://dbpedialite.org/things/9602#id> .
We can get json, too:
curl -L -H "Accept: application/json." http://sameas.org/?uri=http://dbpedia.org/resource/Edinburgh
[
{
"uri": "http://dbpedialite.org/things/9602#id",
"numDuplicates": "20",
"duplicates": [
"http://dbpedia.org/resource/Edinburgh",
"http://data.nytimes.com/N45752581330994625741",
"http://data.nytimes.com/edinburgh_scotland_geo",
"http://dbpedialite.org/things/9602#id",
"http://linkedgeodata.org/triplify/node17898859",
"http://linkedgeodata.org/triplify/node/17898859#id",
"http://mpii.de/yago/resource/Edinburgh",
"http://ookaboo.com/o/pictures/topic/103961/Edinburgh",
"http://openlylocal.com/id/councils/264",
"http://rdf.freebase.com/ns/m.02m77",
"http://rdf.freebase.com/ns/en.edinburgh",
"http://rdf.freebase.com/ns/guid.9202a8c04000641f8000000000014ce7",
"http://statistics.data.gov.uk/id/local-authority/00QP",
"http://statistics.data.gov.uk/id/local-authority?name=Edinburgh%20City%20Council",
"http://sw.opencyc.org/concept/Mx4rvViI3ZwpEbGdrcN5Y29ycA",
"http://sw.opencyc.org/2008/06/10/concept/Mx4rvViI3ZwpEbGdrcN5Y29ycA",
"http://sw.opencyc.org/2008/06/10/concept/en/CityOfEdinburghScotland",
"http://sws.geonames.org/2650225/",
"http://transport.data.gov.uk/id/local-authority/9230",
"http://umbel.org/umbel/ne/wikipedia/Edinburgh"
]
}
]