I posted the service URL so that you could look at the SWP service that 
performs the conversion. I think all you need to do is call it and provide the 
parameters:

> &projectGraph 
> <http://localhost:8083/tbl/swp?_viewClass=ontologyprojects:OWL2SHACLPage&projectGraph=urn:x-evn-master:test_ontology&replace=false&graphs=http://www.w3.org/2003/01/geo/wgs84_pos>
>  - EDG ontology

> &replace=false 
> <http://localhost:8083/tbl/swp?_viewClass=ontologyprojects:OWL2SHACLPage&projectGraph=urn:x-evn-master:test_ontology&replace=false&graphs=http://www.w3.org/2003/01/geo/wgs84_pos>
> &graphs 
> <http://localhost:8083/tbl/swp?_viewClass=ontologyprojects:OWL2SHACLPage&projectGraph=urn:x-evn-master:test_ontology&replace=false&graphs=http://www.w3.org/2003/01/geo/wgs84_pos>
>  - this is where you provide the URIs of the underlying graphs that you are 
> “wrapping” and want to generate shapes from

You do not need to include the OWL2SHAL rules in the EDG ontology. This service 
already knows what to do.

> On May 21, 2020, at 1:54 AM, Rob Atkinson <robatkinson...@gmail.com> wrote:
> 
> 
> In general using the UI isnt an option for data management in the sort of 
> systems we need - but as mentioned I do now know how to recreate the service 
> functions so i dont need to include it. Should be good to go play with that. 
> 
> 
> 
> On Thursday, 21 May 2020 14:07:06 UTC+10, Irene Polikoff wrote:
> 
> 
>> On May 20, 2020, at 10:40 PM, Rob Atkinson <robatki...@gmail.com <>> wrote:
>> 
>>> 
>>> OK - this is based on exporting TTL and inspecting it - its picked up stuff 
>>> from imports - if I open the Repository and look at triples without the 
>>> imports these node shapes arent there. I didnt expect the TTL export to 
>>> include both an owl:imports statement and all the imported statements...
>> 
>> This is the Turtle export on the Export tab of the asset collection? That 
>> doesn't include triples from owl:imported graphs. I use that frequently as a 
>> way of finding out what triples are in the asset collection's master graph.
>> 
>> 
>> Me too - but I have sussed it out - I am including owl2shacl then running 
>> apply shacl rules over graph with imports - which I need to do because the 
>> asset collection is a wrapper around the original ontology (separate thread 
>> about this pattern) - and owl2shacl is including itself and all the teamwork 
>> stuff the asset collection needs to include in the processing ..
> 
> 
> You do not need to include owl2shacl.
> 
> For example, create a new ontology in EDG.
> 
> Include in it some RDFS/OWL file. For example:
> 
> <urn:x-evn-master:test_ontology>
>   a <http://teamwork.topbraidlive.org/ontologyprojects#Ontology 
> <http://teamwork.topbraidlive.org/ontologyprojects#Ontology>> ;
>   a teamwork:Vocabulary ;
>   a owl:Ontology ;
>   metadata:status metadata:UnderDevelopmentStatus ;
>   swa:defaultNamespace "http://example.org/ontologies/Test_Ontology# 
> <http://example.org/ontologies/Test_Ontology#>" ;
>   rdfs:label "Test Ontology" ;
>   owl:imports <http://datashapes.org/graphql <http://datashapes.org/graphql>> 
> ;
>   owl:imports <http://topbraid.org/teamworkconstraints 
> <http://topbraid.org/teamworkconstraints>> ;
>   owl:imports <http://www.w3.org/2003/01/geo/wgs84_pos 
> <http://www.w3.org/2003/01/geo/wgs84_pos>> ;
> .
> 
> Go to Transform tab.
> 
> 
> 
> Select the included wgspos84 ontology
> 
> Click transform, the following service is executed
> 
> http://localhost:8083/tbl/swp?_viewClass=ontologyprojects%3AOWL2SHACLPage&projectGraph=urn%3Ax-evn-master%3Atest_ontology&replace=false&graphs=http%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos%20
>  
> <http://localhost:8083/tbl/swp?_viewClass=ontologyprojects:OWL2SHACLPage&projectGraph=urn:x-evn-master:test_ontology&replace=false&graphs=http://www.w3.org/2003/01/geo/wgs84_pos>
> 
> And you get
> 
> 
> 
> 
>> 
>> Looks like I need to use the optional shapesGraph argument in ApplySHACL 
>> instead of having it in include, and perform extra logic to generate a union 
>> of all the shapes I need to apply, or loop if i can work out what order they 
>> need to be applied.)
>> 
>>  
>> Richard
>> 
>> -- 
>> 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 topbrai...@googlegroups.com <>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/f891a4fb-15ce-483f-88ba-a0ce310169ec%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/f891a4fb-15ce-483f-88ba-a0ce310169ec%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 topbraid-users+unsubscr...@googlegroups.com 
> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/027657e1-43d4-46e1-bf23-e3e1be2b4afc%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/027657e1-43d4-46e1-bf23-e3e1be2b4afc%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 topbraid-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/B8289AAA-243E-462E-9EEE-BEBE29C22FD4%40topquadrant.com.

Reply via email to