Hi Holger, thank your for your quick response.

Yes, setting an explicit target works:

tosh:ObjectPropertyShapeView
  dash:applicableToClass sh:PropertyShape ;
.

I do get a validation error in the UI, because sh:PropertyShape is not an 
owl:Class,
but I guess it can be safely ignored?

On Monday, December 11, 2023 at 9:38:55 AM UTC-6 Holger Knublauch wrote:

> Hi Davide,
>
> the GraphQL engine needs to know which focus nodes are targeted by these 
> shapes. It uses sh:targetClass etc for that.
>
> tosh:ObjectPropertyShapeView does not have any target. Maybe try adding 
> dash:applicableToClass sh:PropertyShape or sh:targetClass?
>
> Holger
>
>
> On 11 Dec 2023, at 4:24 pm, Davide Sottara <[email protected]> wrote:
>
> I am trying to query the tosh: shapes via GraphQL. I have exposed them as 
> publicShapes, so that they show up in the GraphQL schema
>
> rdfsowlclassViews { uri } works as expected
> objectPropertyShapeViews { uri } returns an empty collection
>
> Are there any constraints for the ObjectPropertyShapes to be matched by 
> the query?
> I am targeting the default GraphQL endpoint (not the 'meta', nor the 
> 'skos') of a DataGraph, which includes the Ontology where the property 
> shapes are defined. 
>
> I am using EDG 7.6
>
> Thank you in advance
> Davide
>
> On Thursday, May 11, 2023 at 10:21:44 AM UTC-5 Holger Knublauch wrote:
>
>> Hi Jennifer,
>>
>> if I interpret your question correctly, you want to be able to attach 
>> additional properties to the definitions of properties themselves?
>>
>> In TopBraid and SHACL, properties are typically represented using 
>> Property Shapes. The list of properties that show up on the forms for 
>> property shapes are defined in the dedicated node shapes
>>
>> - tosh:ObjectPropertyShapeView for relationships
>> - tosh:DatatypePropertyShapeView for attributes
>>
>> You can define your own extensions to those shapes by creating an 
>> Ontology and navigating to those shapes in the Node Shapes panel. Then add 
>> the properties that you need to those.
>>
>> If this doesn't answer your question, please follow up. Another 
>> interpretation may be reification, see 
>> https://datashapes.org/reification.html
>>
>> Holger
>>
>>
>>
>> On 11 May 2023, at 4:15 pm, 'Jennifer Schmich' via TopBraid Suite Users <
>> [email protected]> wrote:
>>
>> Does anyone here know (or can point me to documentation if such exists) 
>> if TopBraid EDG provides any support for attributes of properties? I know 
>> workarounds for this problem exist in RDF but I’m wondering if TopBraid 
>> provides any utilities for it or if it’s all manual.
>>
>> Thanks!
>>
>> -- 
>> The topics of this mailing list include TopBraid EDG and related 
>> technologies such as SHACL.
>> To post to this group, send email to [email protected]
>> --- 
>> 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/5c062fca-299b-4ff9-af62-e7512eb8a1e8n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/5c062fca-299b-4ff9-af62-e7512eb8a1e8n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
> -- 
> The topics of this mailing list include TopBraid EDG and related 
> technologies such as SHACL.
> To post to this group, send email to [email protected]
> --- 
> 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/190ce71d-1da2-4be2-bad1-ff30fd6c8263n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/190ce71d-1da2-4be2-bad1-ff30fd6c8263n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
The topics of this mailing list include TopBraid EDG and related technologies 
such as SHACL.
To post to this group, send email to [email protected]
--- 
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/3e2fb3dd-05f3-4511-8dce-9bb0484913dbn%40googlegroups.com.

Reply via email to