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 <[email protected]> wrote:
>
> From 7.0 onward this mechanism should just work, see the attached ontology
> <jngfcegbdffmhoae.png>
>
> In previous versions, this required a different mechanism, see
>
> https://doc.topquadrant.com/6.4/ontologies/#Customizing_Forms_for_Classes_and_Properties
>
> <https://doc.topquadrant.com/6.4/ontologies/#Customizing_Forms_for_Classes_and_Properties>
> HTH
> Holger
>
>
>
> On 2021-05-11 3:59 pm, [email protected] <mailto:[email protected]>
> wrote:
>>
>> 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.
>>
>>
>> --
>> 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 [email protected]
>> <mailto:[email protected]>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/topbraid-users/463815bc-5259-4249-bd5b-2a1e8513fd1cn%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/topbraid-users/463815bc-5259-4249-bd5b-2a1e8513fd1cn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
>
> --
> 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 [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/topbraid-users/431c3eae-d7dd-b6bb-ec33-2a721fff1eca%40topquadrant.com
>
> <https://groups.google.com/d/msgid/topbraid-users/431c3eae-d7dd-b6bb-ec33-2a721fff1eca%40topquadrant.com?utm_medium=email&utm_source=footer>.
> <added_owl_class_property.ttl>
UK +44 (0) 7788 561308
US +1 (336) 283-0808
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/9552EFAE-E1F9-405A-844B-601FB523CE34%40topquadrant.com.