Skip to content

Mapper not handling prefixes correctly #271

@eahogue

Description

@eahogue

Hello,

I've tried everything I can think of to resolve this without luck.

I am editing a mapping using refine. I have defined several prefixes in the bar at the top. Most of them work normally. One of them doesn't, though.

The one that doesn't (based on something I made and then exported from Protege), is doing the following.

If I want to say 'iri a prefix:Company', in the preview it normally renders as something like 'prefix:Company' for the object. All I have to do is type the prefix, then select "Company" from the drop down list. Fine.

With my ontology, if I do the same (type the prefix, select from dropdown, all looking exactly the same), it renders in preview to something like: 'prefix:https%3A//example.com/ontologies/anontology_core/Company'.

So it seems that for some reason it is adding the prefix onto the whole, unabbreviated IRI.

I can't see any reason from looking at the ontology file that it should do this. It's straight from Protege, so there shouldn't be anything strange in it.

It's driving me nuts because every time I have to go back and manually edit it.

I've attached a screenshot.

Here is an excerpt of the owl file that I have imported that is apparently causing this behavior:

@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix gist: <https://w3id.org/semanticarts/ns/ontology/gist/> .
@prefix gsai: <https://growthsphere.ai/ontologies/gsai_core/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

...

###  https://growthsphere.ai/ontologies/gsai_core/Company
gsai:Company rdf:type owl:Class ;
             rdfs:subClassOf gist:Organization .
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions