oeg-upm / Chowlk

Tool to transform an ontology diagram into OWL code.
Apache License 2.0
22 stars 6 forks source link

Namespace for datatype range is always xds #39

Closed GordianDziwis closed 4 months ago

GordianDziwis commented 1 year ago

This diagram: image

Should output this:

```turtle
ns:datatypeProperty1 a owl:DatatypeProperty ;
    rdfs:label "datatype property1" ;
    rdfs:range ns:test .

Instead of:

ns:datatypeProperty1 a owl:DatatypeProperty ;
    rdfs:label "datatype property1" ;
    rdfs:range xsd:ns .
mariapoveda commented 1 year ago

Initally it was intended only for xsd. We'll consider it as future feature.

Sergio-Carulli commented 4 months ago

Now custom datatypes can be defined. By default, if a prefix is not defined, "xsd" is taken as the datatype prefix. In order to use custom datatypes please see https://chowlk.linkeddata.es/notation.html#datatype-properties , https://chowlk.linkeddata.es/notation.html#restriction-value-constraint-identifier , https://chowlk.linkeddata.es/notation.html#datatype-properties-enumerated-datatype and https://chowlk.linkeddata.es/notation.html#property-values