Skip to content

Incorrect N3 syntax on DC terms #3

Description

@timrdf

In http://lov.okfn.org/lov.n3.gz, the following appears:

@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix owl:   <http://www.w3.org/2002/07/owl#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix lov:   <http://lov.okfn.org/dataset/lov/> .

<https://w3id.org/seas/QUDTAlignment>
        <http://purl.org/dc/terms/title>
                "QUDT Alignment."@en ;
        <http://purl.org/stuff/rev#hasReview>
                [ a                  <http://purl.org/stuff/rev#Review> ;
                  <dcterms:creator>  <http://google.com/+GhislainAtemezing> ;
                  <dcterms:date>     "2016-12-09"^^xsd:date ;
                  <http://purl.org/stuff/rev#text>
                          "Alignment of SEAS with QUDT in a different vocabulary"
                ] ;

Converting it to NTriples highlights the syntax bug on e.g. <dcterms:creator>:

rapper -g -o ntriples manual/lov.n3 | grep '<dcterms:creator>' returns:

_:genid5041 <dcterms:creator> <http://google.com/+BernardVatant> .

But I think you wanted it to return:

_:genid5041 <http://purl.org/dc/terms/creator> <http://google.com/+BernardVatant> .

The fix would be to either 1) Add the dcterms prefix and remove the angles, or 2) replace the "dcterms:" with its true base IRI ("http://purl.org/dc/terms/").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions