-
Notifications
You must be signed in to change notification settings - Fork 74
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
MERGE annotates xsd datatypes #1163
Comments
@hkir-dev volunteered to take this on, thanks for the report! |
I started an implementation that excludes built-in OWL 2 datatypes However, I noticed that @prefix : <http://example.com/test-robot-xsd#> .
@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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://example.com/test-robot-xsd> .
<http://example.com/test-robot-xsd> rdf:type owl:Ontology .
#################################################################
# Datatypes
#################################################################
### http://www.w3.org/2001/XMLSchema#date
xsd:date rdf:type rdfs:Datatype ;
rdfs:isDefinedBy <http://example.com/test-robot-xsd> .
#################################################################
# Data properties
#################################################################
### http://example.com/test-robot-xsd#someDataProperty
:someDataProperty rdf:type owl:DatatypeProperty ;
rdfs:isDefinedBy <http://example.com/test-robot-xsd> .
#################################################################
# Individuals
#################################################################
### http://example.com/test-robot-xsd#someIndividual
:someIndividual rdf:type owl:NamedIndividual ;
:someDataProperty "true"^^xsd:boolean ,
"2000-01-01"^^xsd:date ,
"2000-01-01T00:00:00"^^xsd:dateTime ,
0.1 ,
"0.1"^^xsd:double ,
1 ,
"a" ;
rdfs:isDefinedBy <http://example.com/test-robot-xsd> .
### Generated by the OWL API (version 4.5.26) https://github.com/owlcs/owlapi Should we consider ignoring all data types, not just the built-in ones, or continue with the current implementation? |
@hkir-dev you could just exclude anything defined as the reserved vocabulary of OWL 2:
|
I am currently setting up a pipeline that merges all ontology modules of a project into one file. During that I notices that
robot merge --annotate-derived-from true …
also adds annotations to used XSD datatypes, as that triggered some other problems (owlcs/owlapi#1116) later on. I think, it would be better to not annotate the XSD datatypes in the same wayrdf:type
will not be annotated.Example:
Executed command:
robot merge --input test-robot-xsd.ttl --annotate-defined-by true --output test-robot-xsd.merge.ttl
The text was updated successfully, but these errors were encountered: