Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined hg:PlaceInTimeType in ontology #15

Open
coret opened this issue Sep 9, 2021 · 1 comment
Open

Undefined hg:PlaceInTimeType in ontology #15

coret opened this issue Sep 9, 2021 · 1 comment

Comments

@coret
Copy link

coret commented Sep 9, 2021

The current ontology contains the undefined object hg:PlaceInTimeType:

<http://rdf.histograph.io/> rdf:type owl:Ontology;
    owl:imports <http://www.opengis.net/ont/geosparql>, <http://www.w3.org/2006/time>, <http://www.w3.org/ns/prov>.
hg:PlaceInTime rdf:type owl:Class;
    rdfs:subClassOf owl:Thing.
hg:Address rdf:type hg:PlaceInTimeType;
    rdfs:label "Address".
......

Suggestion to correct:

<http://rdf.histograph.io/> rdf:type owl:Ontology;
	owl:imports <http://www.opengis.net/ont/geosparql>, <http://www.w3.org/2006/time>, <http://www.w3.org/ns/prov>.
hg:PlaceInTime rdf:type owl:Class;
	rdfs:subClassOf owl:Thing.
hg:Address rdf:type owl:Class;
	rdfs:subClassOf hg:PlaceInTime;
	rdfs:label "Address".
......
@sbocconi
Copy link

If anybody is going to fix this (I am out of the project), he/she should look at this line of code:

writer.addTriple(baseUri + type, 'rdf:type', baseUri + baseType + 'Type');

and probably remove the + 'Type'.

Success!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants