Hey Tim,

You are looking for different IRIs: http://dbpedia.org/resource/Neman_River != 
http://dbpedia.org/resource/Neman_(river)

The reason is stated in the resource description below:

> dbr:Neman_River       dbo:wikiPageRedirects   
> <http://dbpedia.org/resource/Neman_(river)>


So there is a "semantic redirect" in the data which is not considered by the 
server for the /data/ namespace. Though it works in the /page/ namespace (which 
might be the reason you got two IRIs).

A second request will give you what you are looking for:

$ curl -H "Accept: text/turtle" -L 'http://dbpedia.org/resource/Neman_(river)'

These redirects are resolved within the DBpedia dataset, i.e. redirect 
resources do not have incoming links. But it might happen, that such IRIs do 
exist in external datasets, e.g. from outdated links, or user interaction.
If you want to process the data automatically, you would need to follow these 
redirects when accessing DBpedia IRIs in order to get the data you are looking 
for.

Best regards
Magnus

> Am 11.11.2016 um 14:45 schrieb Timothy Lebo <le...@rpi.edu>:
> 
> Greetings.
> 
> Why does direct content negotiation only return a subset of what is provided 
> at e.g.  http://dbpedia.org/data/Neman_(river).n3 ?
> 
> Thanks,
> Tim
> 
> This is all that is returned:
> 
> bash-3.2$ curl -H "Accept: text/turtle" -L 
> http://dbpedia.org/resource/Neman_River
> 
> @prefix owl:  <http://www.w3.org/2002/07/owl#> .
> @prefix dbr:  <http://dbpedia.org/resource/> .
> dbr:Neman_River       owl:sameAs      dbr:Neman_River .
> @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
> dbr:Neman_River       rdfs:label      "Neman River"@en .
> @prefix foaf: <http://xmlns.com/foaf/0.1/> .
> @prefix wikipedia-en: <http://en.wikipedia.org/wiki/> .
> dbr:Neman_River       foaf:isPrimaryTopicOf   wikipedia-en:Neman_River .
> @prefix prov: <http://www.w3.org/ns/prov#> .
> dbr:Neman_River       prov:wasDerivedFrom     
> <http://en.wikipedia.org/wiki/Neman_River?oldid=635904133> .
> @prefix dbo:  <http://dbpedia.org/ontology/> .
> dbr:Neman_River       dbo:wikiPageRedirects   
> <http://dbpedia.org/resource/Neman_(river)> ;
>       dbo:wikiPageID  44543203 ;
>       dbo:wikiPageRevisionID  635904133 .
> wikipedia-en:Neman_River      foaf:primaryTopic       dbr:Neman_River .
> 
> 
> 
> Timothy Lebo
> le...@rpi.edu
> http://purl.org/twc/id/person/TimLebo a foaf:Person.
> 
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. 
> http://sdm.link/xeonphi_______________________________________________
> DBpedia-discussion mailing list
> DBpedia-discussion@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

-- 
Magnus Knuth

Hasso-Plattner-Institut für Softwaresystemtechnik GmbH
Prof.-Dr.-Helmert-Str. 2-3
14482 Potsdam

Amtsgericht Potsdam, HRB 12184
Geschäftsführung: Prof. Dr. Christoph Meinel

tel:     +49 331 5509 547
email:   magnus.kn...@hpi.de
web:     http://www.hpi.de/
webID:   http://magnus.13mm.de/


------------------------------------------------------------------------------
_______________________________________________
DBpedia-discussion mailing list
DBpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to