Skip to content

DBPedia returns in valid RDF #676

Open
@reckart

Description

@reckart

Issue still valid?

DBpedia updates frequently in this order: 1. DIEF software, 2. monthly dumps, 3. online services loaded from dumps.
We update http://dief.tools.dbpedia.org/server/extraction/ on a daily basis from the git and it reflects the current state.
Please verify your issue with this service, e.g. http://dief.tools.dbpedia.org/server/extraction/en/extract?title=United+States
Please add the link you used for verification:

Not sure what you want me to validate here. You can validate the issue using the "execute query" link below.

Source

Where did you find the data issue? Pick one, remove the others.

Web / SPARQL

State the service (e.g. http://dbpedia.org/sparql) and the SPARQL query
give a link to the web / linked data pages (e.g. http://dbpedia.org/resource/Berlin)

Here is a link to reproduce the issue: execute query.

Error Description

Please state the nature of your technical emergency:

The query returns a literal tagged as a langString, but it does not include a language.

<sparql xmlns="http://www.w3.org/2005/sparql-results#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/sw/DataAccess/rf1/result2.xsd">
 <head>
  <variable name="lc"/>
  <variable name="subj"/>
 </head>
 <results distinct="false" ordered="true">
  <result>
   <binding name="lc"><literal xml:lang="de">Altin Lala</literal></binding>
   <binding name="subj"><uri>http://de.dbpedia.org/resource/Altin_Lala</uri></binding>
  </result>
  <result>
   <binding name="lc"><literal xml:lang="de">Hans Lala</literal></binding>
   <binding name="subj"><uri>http://de.dbpedia.org/resource/Hans_Lala</uri></binding>
  </result>
  <result>
   <binding name="lc"><literal xml:lang="de">Maharan Lala</literal></binding>
   <binding name="subj"><uri>http://de.dbpedia.org/resource/Maharan_Lala</uri></binding>
  </result>
  <result>
   <binding name="lc"><literal xml:lang="de">Jiri Lala</literal></binding>
   <binding name="subj"><uri>http://de.dbpedia.org/resource/Jiri_Lala</uri></binding>
  </result>
  <result>
   <binding name="lc"><literal xml:lang="de">Jan Lala</literal></binding>
   <binding name="subj"><uri>http://de.dbpedia.org/resource/Jan_Lala</uri></binding>
  </result>
  <result>
   <binding name="lc"><literal datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString">Hans Lala</literal></binding>
   <binding name="subj"><uri>http://de.dbpedia.org/resource/Hans_Lala</uri></binding>
  </result>
 </results>
</sparql>

This is invalid according to the RDF specs. (Ref: eclipse-rdf4j/rdf4j#2815)

Just for info from the RDF 1.1 spec:

"if and only if the datatype IRI is http://www.w3.org/1999/02/22-rdf-syntax-ns#langString, a non-empty language tag as defined by [BCP47]. The language tag must be well-formed according to section 2.2.9 of [BCP47]."

https://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal

Error specification

Pick the appropriate:

I would guess that omitting the datatype or changing it to string should probably work.

  • Expected / corrected RDF outcome snippet (NTRIPLES):
    <result>
     <binding name="lc"><literal>Hans Lala</literal></binding>
     <binding name="subj"><uri>http://de.dbpedia.org/resource/Hans_Lala</uri></binding>
    </result>
    
    

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions