owl2shacl

86 views
Skip to first unread message

Jan Voskuil

unread,
Mar 30, 2022, 9:11:37 AM3/30/22
to topbrai...@googlegroups.com

Hi,

We intend to convert an RDFS/OWL ontology to a shape file and, from then on, work with SHACL.

So, we are very happy with the conversion functionality.

It appears that unions of datatype ranges are not converted. Thus,

 

x:someProperty

  rdf:type owl:DatatypeProperty ;

  rdfs:domain x:Domain ;

  rdfs:range [

      rdf:type owl:Class ;

      owl:unionOf (

          xsd:date

          xsd:gYearMonth

          xsd:gYear

        ) ;

    ] ;

.

 

Results in:

 

x:Domain-someProperty

  rdf:type sh:PropertyShape ;

  sh:path x:someProperty ;

.

 

With no range indicated. Unions that are the value of rdfs:domain are converted correctly. Best regards, -Jan

 

 

Jan Voskuil | CEO Taxonic | Ontologist

Veldzigt 2, 3454 PW, De Meern, The Netherlands

T +31 (0)88 829 66 00 | M:+31 (0)6 14488335

jan.v...@taxonic.com | www.taxonic.com

Registered office in Den Haag, The Netherlands

Registration Number Chamber of Commerce: 54529190

 

 

David Price

unread,
Mar 30, 2022, 9:30:34 AM3/30/22
to topbrai...@googlegroups.com
FYI it’s not hard to extend the OWL2SHACL capability to handle more complex cases.


Cheers,
David

-- 
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/AM0PR03MB37455EFCF930C93E291E3E6EE91F9%40AM0PR03MB3745.eurprd03.prod.outlook.com.


Holger Knublauch

unread,
Mar 30, 2022, 9:05:33 PM3/30/22
to topbrai...@googlegroups.com

I have added two cases (owl:unionOf with length 2 and 3 in the attached update, which will also be part of TopBraid 7.3. Handling arbitrary length lists would require JavaScript but I hope the provided solution will keep you going.

Jan, I would appreciate if you could test this and let us know if it works.

Holger

owl2shacl.ttl

Rob Atkinson

unread,
Apr 4, 2022, 1:07:22 AM4/4/22
to topbrai...@googlegroups.com
Hi 

can anyone in TQ shed any light on the copyright status of the owl2shacl rules - there is no metadata in the file and this is posted on a public access forum, so is there any impediment to utilising it in an open source project? 

cheers

Holger Knublauch

unread,
Apr 4, 2022, 5:56:08 PM4/4/22
to topbrai...@googlegroups.com

Hi Rob,

yes you can freely use that one, with no strings attached. We are always happy if ontologies get converted from OWL to SHACL :)

Do you have a specific metadata annotation in mind so that we can clarify this, i.e. what license would you suggest for such things?

Note this rule does NOT apply to all ontologies bundled with TopBraid.

Holger

Rob Atkinson

unread,
Apr 4, 2022, 8:56:42 PM4/4/22
to topbrai...@googlegroups.com
Great - thanks Holger

I'm thinking of using this version of it as its already in a git project with an explicit licence I can pull in an has extended options:


could add licence metadata using ODRL i guess - in this case the repo will suffice as the content itself wont appear in the generated data.

Cheers
Rob


bostoM

unread,
Apr 15, 2022, 6:03:43 AM4/15/22
to TopBraid Suite Users
Reply all
Reply to author
Forward
0 new messages