Skip to content

Pushing blank nodes to the triple store fails #125

@tobice

Description

@tobice

The evaluation uses N3 format to push new triplets to the triple store. My experimental pipeline produces blank nodes which after the conversion to N3 look like this:

@prefix ns0:   <http://linked.opendata.cz/ontology/chord/> .
@prefix ns1:   <http://linked.opendata.cz/resource/business-entity/> .

[ ns0:source  ns1:CZ00006947 ;
  ns0:target  <http://linked.opendata.cz/resource/domain/seznam.gov.cz/rejstriky/business-entity/28175492>
] .

[ ns0:source  ns1:CZ00241610 ;
  ns0:target  <http://linked.opendata.cz/resource/domain/seznam.gov.cz/rejstriky/business-entity/60437359>
] .

Although this syntax is valid according to several translators/validators that I tried online, Virtuoso (v7.2) doesn't like it. It fails with the following error message:

SP029: TURTLE RDF loader, line 8: Missing predicate and object between top-level blank node subject and a dot processed pending to here.

Switching to RDF/XML format here fixed the problem for me. The triplets were successfully pushed to the triple store.

I can make a pull request with this change. But maybe there is a reason for why N3 is used and this change could break something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions