Skip to content

prefixes trouble when using --subjectOrder #27

@VladimirAlexiev

Description

@VladimirAlexiev

If I run with these options:

--subjectOrder owl:Ontology						\
--subjectOrder cims:ClassCategory					\
--subjectOrder rdfs:Class						\
--subjectOrder owl:Class						\
--subjectOrder rdf:Property						\
--subjectOrder owl:ObjectProperty					\
--subjectOrder owl:DatatypeProperty					\
--subjectOrder owl:AnnotationProperty					\
--subjectOrder owl:NamedIndividual

I get

16:31:23.120 [main] DEBUG de.atextor.owlcli.OWLCLIWriteCommand -- No prefix declaration matched URI owl:Ontology, keeping as-is
16:31:23.120 [main] DEBUG de.atextor.owlcli.OWLCLIWriteCommand -- No prefix declaration matched URI cims:ClassCategory, keeping as-is
16:31:23.120 [main] DEBUG de.atextor.owlcli.OWLCLIWriteCommand -- No prefix declaration matched URI rdfs:Class, keeping as-is
16:31:23.120 [main] DEBUG de.atextor.owlcli.OWLCLIWriteCommand -- No prefix declaration matched URI owl:Class, keeping as-is
16:31:23.120 [main] DEBUG de.atextor.owlcli.OWLCLIWriteCommand -- No prefix declaration matched URI rdf:Property, keeping as-is
16:31:23.135 [main] DEBUG de.atextor.owlcli.OWLCLIWriteCommand -- No prefix declaration matched URI owl:ObjectProperty, keeping as-is
16:31:23.135 [main] DEBUG de.atextor.owlcli.OWLCLIWriteCommand -- No prefix declaration matched URI owl:DatatypeProperty, keeping as-is
16:31:23.135 [main] DEBUG de.atextor.owlcli.OWLCLIWriteCommand -- No prefix declaration matched URI owl:AnnotationProperty, keeping as-is
16:31:23.135 [main] DEBUG de.atextor.owlcli.OWLCLIWriteCommand -- No prefix declaration matched URI owl:NamedIndividual, keeping as-is

I thought it knows about the standard prefixes, so I don't need to mention them?

Then I tried:

--prefix owl								\
--prefix rdf								\
--prefix rdfs								\
--prefix cims=http://iec.ch/TC57/1999/rdf-schema-extensions-19990926# \

As a result, all terms are sorted in alphabetical order.
So I think it reset owl. rdf, rdfs to empty URLs.

This contradicts the documentation

You can specify a well-known prefix (currently: rdf, rdfs, xsd, owl, dcterms)

(without giving the URL)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions