-
Notifications
You must be signed in to change notification settings - Fork 1
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
section sorting #22
Comments
Hi @VladimirAlexiev ,
The second-to-last point I don't get, I think naming conventions used in an RDF document or OWL ontology (should) have nothing to do with how the document is formatted. |
I agree, we need flexible configurations. - Eg the above says nothing about formatting SHACL. Do we put NodeShape into a section like "Classes" and PropertyShapes into a section like "Properties"?
My point about prop naming is this:
|
I see. That would happen automatically if both are assigned to the "Properties" section. However, if you have both a "DataProperties" and an "ObjectProperties" section I wouldn't know how you'd configure that. We probably would need a separate configuration option à la "namingOverridesSections" or similar, but you'd need to set this flag for separate elements ("status" and "statusOther" in this case), or by (regex) pattern, or..? But if this issue introduces the concept of sections that would already valuable, a separate issue on how to do or configure the assignment of elements to sections could be created. |
Let's have just one way to configure sorting. The command-line syntax could be something like this:
The java structure should be a hash of arrays. |
@atextor Can you please make this quick fix: |
You mean in the default settings? Would it help you for your current use case to use the existing
|
Yes, i mean the default |
|
|
In RDFLib/rdflib#2880 I wrote some requirements for a pretty-printer.
One of them is about the major sections of an (ontology) file.
I would like them in this order:
### Ontology
: owl:Ontology### Classes
: rdfs:Class, owl:Class### Datatypes
: rdfs:Datatype### Properties
: rdf:Property, owl:ObjectProperty, owl:DatatypeProperty, owl:AnnotationProperty, owl:FunctionalProperty, owl:InverseFunctionalProperty, owl:ReflexiveProperty, owl:IrreflexiveProperty, owl:SymmetricProperty, owl:AsymmetricProperty, owl:TransitiveProperty### Individuals
: owl:NamedIndividual, skos:ConceptScheme, skos:Concept### Axioms
: owl:Axiom### Disjointness
: owl:AllDisjointClasses, owl:AllDisjointProperties, owl:AllDifferent### External Terms
: Sort external terms last #20###
comments as section headers (to delineate them).The sources of the above list are:
This library nearly does it with the
--subjectOrder
option, with default value:[rdfs:Class, owl:Ontology, owl:Class, rdf:Property, owl:ObjectProperty, owl:DatatypeProperty, owl:AnnotationProperty, owl:NamedIndividual, owl:AllDifferent, owl:Axiom]
.However:
rdfs:Class
next toowl:Class
(afterowl:Ontology
)status
: ObjectProperty with values from a certain ConceptSchemestatusOther
DatatypeProperty stringThe text was updated successfully, but these errors were encountered: