Adding properties owl:Class instance forms

37 views
Skip to first unread message

robatki...@gmail.com

unread,
May 11, 2021, 1:59:32 AM5/11/21
to TopBraid Suite Users

I'm not sure I've tried all possible shape options, but I dont seem to be able to add shapes to owl:Class to control the display of Class objects.  Is there some hardcoding of display shapes here? If not which method might work: 

owl:Class sh:property <x>

<x> sh:targetClass owl:Class

or (preferably) 
<ps> sh:path <p> ;  sh:targetSubjectsOf <p>

Use Case - I want to document a OWL model with instance examples so I used skos:example to add links to examples for a Class - but I cannot get this to show on the form by default. The whole point is to be able to use EDG workflows to get examples supplied in a ontology design process...

I havent tried making owl:Class the subject root and looking at instances - because its going to be confusing changing the display paradigm and I would lose the hierarchical browsing of the ontology contents.


Holger Knublauch

unread,
May 11, 2021, 2:18:08 AM5/11/21
to topbrai...@googlegroups.com

From 7.0 onward this mechanism should just work, see the attached ontology

In previous versions, this required a different mechanism, see

https://doc.topquadrant.com/6.4/ontologies/#Customizing_Forms_for_Classes_and_Properties

HTH
Holger

--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/463815bc-5259-4249-bd5b-2a1e8513fd1cn%40googlegroups.com.
added_owl_class_property.ttl

David Price

unread,
May 11, 2021, 6:12:21 AM5/11/21
to topbrai...@googlegroups.com
If you need the same approach to work in 6.4 and 7.0 then the attached won’t solve you problem (“7.0 onward" as Holger said). 

You have to name a node shape for the properties and use applicableToClass to refer to owl:Class. Something like this:

skosshapes:ClassAnnotationExtenions
        rdfs:label              "Class annotation extenions" ;
        rdf:type                sh:NodeShape ;
        sh:property             skosshapes:ClassAnnotationExtenions-example ;
        sh:property             skosshapes:ClassAnnotationExtenions-note ;
        sh:property             skosshapes:ClassAnnotationExtenions-prefLabel ;
        sh:property             skosshapes:ClassAnnotationExtenions-notation ;
        sh:property             skosshapes:ClassAnnotationExtenions-historyNote ;
        sh:property             skosshapes:ClassAnnotationExtenions-scopeNote ;
        sh:property             skosshapes:ClassAnnotationExtenions-editorialNote ;
        sh:property             skosshapes:ClassAnnotationExtenions-definition ;
        sh:property             skosshapes:ClassAnnotationExtenions-hiddenLabel ;
        sh:property             skosshapes:ClassAnnotationExtenions-hidden ;
        sh:property             skosshapes:ClassAnnotationExtenions-altLabel ;
        sh:property             skosshapes:ClassAnnotationExtenions-changeNote ;
        dash:applicableToClass  owl:Class .

Cheers,
David

On 11 May 2021, at 07:18, Holger Knublauch <hol...@topquadrant.com> wrote:

From 7.0 onward this mechanism should just work, see the attached ontology

<jngfcegbdffmhoae.png>

Reply all
Reply to author
Forward
0 new messages