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



On 2021-05-11 3:59 pm, [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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/431c3eae-d7dd-b6bb-ec33-2a721fff1eca%40topquadrant.com.
# baseURI: urn:x-evn-master:added_owl_class_property
# imports: http://datashapes.org/graphql
# imports: http://topbraid.org/teamworkconstraints

@prefix added_owl_class_property: 
<http://example.org/ontologies/Added_owl%3AClass_Property#> .
@prefix metadata: <http://topbraid.org/metadata#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix teamwork: <http://topbraid.org/teamwork#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://teamwork.topbraidlive.org/ontologyprojects#Ontology>
  rdfs:subClassOf teamwork:Vocabulary ;
.
teamwork:Vocabulary
  rdfs:subClassOf owl:Ontology ;
.
owl:Class
  sh:property owl:Class-extraProperty ;
.
owl:Class-extraProperty
  a sh:PropertyShape ;
  sh:path added_owl_class_property:extraProperty ;
  sh:datatype xsd:string ;
  sh:maxCount 1 ;
  sh:name "extra property" ;
.
<urn:x-evn-master:added_owl_class_property>
  a <http://teamwork.topbraidlive.org/ontologyprojects#Ontology> ;
  a teamwork:Vocabulary ;
  a owl:Ontology ;
  metadata:status metadata:UnderDevelopmentStatus ;
  <http://topbraid.org/swa#defaultNamespace> 
"http://example.org/ontologies/Added_owl%3AClass_Property#"; ;
  teamwork:rootClass rdfs:Resource ;
  rdfs:label "Added owl:Class Property" ;
  owl:imports <http://datashapes.org/graphql> ;
  owl:imports <http://topbraid.org/teamworkconstraints> ;
.

Reply via email to