Skip to content

Ability to set baseIRI on individual import call #41

Open
@tpluscode

Description

@tpluscode

I think related to #20 but maybe not exactly the same, I found out that the parser fails to handle some relative named nodes and throws. For example I failed to parse https://www.w3.org/ns/earl# and it fails right off the bat on owl:Ontology as seen below

<rdf:RDF xml:base=""
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
        xmlns:owl="http://www.w3.org/2002/07/owl"
        xmlns:dc="http://purl.org/dc/terms/">

<owl:Ontology rdf:about=""></owl:Ontology>

I am running this from @rdfjs/fetch which sets a baseIRI parameter when calling like parser.import({ baseIRI: res.url }).

The parser however does not take a second parameter and the base test ignores. I think it would be worth adding, similarly to how most other RDF/JS parser out there do

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions