extraction-framework icon indicating copy to clipboard operation
extraction-framework copied to clipboard

wrong use of rdf:langString as datatype

Open VladimirAlexiev opened this issue 6 years ago • 0 comments

Consider this query

select * {
  ?x dbp:shortName ?y
} limit 10

It returns eg

dbr:Aluminium_Al-Mahdi_Hormozgan_VC  "Aluminium"^^rdf:langString

That is nok: a string becomes langString by virtue of having a language tag, so this datatype should not be used directly. The correct literal would be "Aluminium"@en.

It's ok to declare the property to have range rdf:langString, which however is not done, as you can check with

select * {
  dbp:shortName ?p ?x
}

Or with

    curl -L -Haccept:application/rdf+xml http://dbpedia.org/property/shortName

Not sure how this is related to #187.

VladimirAlexiev avatar Aug 21 '19 09:08 VladimirAlexiev