Dear Irene I fully understand and apologize.
It just sometimes so frustrating that you looked at all the examples available and sparql/shacl/shacl-af specs, copied all that was there in and it still does not work as expected. So as a last resort you hope to get a tip via the list…. I pinpointed the actual issue to the sh:construct clause: “Unresolved prefixed name rdf:type”. So hard to understand: I have a sh:prefixes for rdf in the sh:rule (following the examples in https://w3c.github.io/shacl/shacl-af/#rules). sainput:MonsterLaag a owl:Class ; a sh:NodeShape ; rdfs:label "MonsterLaag" ; sh:rule [ a sh:SPARQLRule ; sh:prefixes sa: ; sh:prefixes sainput: ; sh:prefixes rdf: ; sh:construct """ CONSTRUCT { ?uri rdf:type sa:Project . } WHERE { ?this sainput:projectOmschrijving ?omschrijving . BIND (IRI (CONCAT ("https://w3id.og/sa/def#", ?omschrijving )) AS ?uri) . } """ ; ] ; . And following the examples in the specs I also added to the ontology (even to the importing ontology since I was not sure whether owl:imports also imports the sh:declare’s): <https://w3id.org/sainput/owl/def> a owl:Ontology ; owl:imports sh: ; sh:declare [ sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ; sh:prefix "rdf" ; ] ; sh:declare [ sh:namespace "https://w3id.org/sa/def#"^^xsd:anyURI ; sh:prefix "sa" ; ] ; sh:declare [ sh:namespace "https://w3id.org/sainput/def#"^^xsd:anyURI ; sh:prefix "sainput" ; ] ; . So you start wondering, what else could possibly go wrong! And yes, I already tried, as you suggested earlier, to replace all prefixes by uri’s. In that case there is no problem at all: the rule generates the instance. [cid:image003.png@01D7B2E6.5FAC0450] Apologies again Michel Dr. ir. H.M. (Michel) Bohms Scientist Specialist Structural Reliability T +31 (0)88 866 31 07 M +31 (0)63 038 12 20 E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl> Location<http://www.tno.nl/locations/DTS> [cid:image001.gif@01D7B2E1.31978BC0]<http://www.tno.nl/> This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages. From: topbraid-users@googlegroups.com <topbraid-users@googlegroups.com> On Behalf Of Irene Polikoff Sent: Sunday, September 26, 2021 2:28 AM To: topbraid-users@googlegroups.com Subject: Re: [topbraid-users] malformed shacl Hi Michel, If you think your problem is due to some issue with prefixes, a quick workaround is to replace the QNames in the query with full URIs in <>. I know that you sent a number of other e-mails to this list about your prefixes problems. I am quite certain that they are not about bugs in our tool, but are either a result of user error or some issues with the files you are using. Investigating what is happening with your example would require me to get your files and try to reproduce what you were doing. Unfortunately, we do not have time and resources to provide this kind of involved assistance free of charge. Many of our users have technical expertise to resolve such issues themselves and only need some general tips and hints that this list is designed to offer. When this is not the case (or for projects that may be too complicated to do without more intense interaction and mentoring from TopQuadrant), we can provide help off the mailing list through a contracted professional services project. Regards, Irene On Sep 24, 2021, at 3:16 PM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>> wrote: Took out the prefixes there, and added 3x declare in beginning, still: <image003.png> Dr. ir. H.M. (Michel) Bohms Scientist Specialist Structural Reliability T +31 (0)88 866 31 07 M +31 (0)63 038 12 20 E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl> Location<http://www.tno.nl/locations/DTS> <image004.gif><http://www.tno.nl/> This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages. From: 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>> Sent: Friday, September 24, 2021 8:56 PM To: topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com> Subject: [topbraid-users] malformed shacl Hi David, Irene Tbc says maformed shacl for: <image005.png> Any tip welcome, thx Michel Dr. ir. H.M. (Michel) Bohms Scientist Specialist Structural Reliability T +31 (0)88 866 31 07 M +31 (0)63 038 12 20 E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl> Location<http://www.tno.nl/locations/DTS> <image004.gif><http://www.tno.nl/> This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. TNO accepts no liability for the content of this e-mail, for the manner in which you use it and for damage of any kind resulting from the risks inherent to the electronic transmission of messages. -- 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/6a93f92fda784aaf98b0bc4773ce7e71%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/6a93f92fda784aaf98b0bc4773ce7e71%40tno.nl?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/0ffc2a35a5414b63993ea69ed18b1e13%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/0ffc2a35a5414b63993ea69ed18b1e13%40tno.nl?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/8DA4CD5F-BA0A-44C6-96D7-57AA83A6CB32%40topquadrant.com<https://groups.google.com/d/msgid/topbraid-users/8DA4CD5F-BA0A-44C6-96D7-57AA83A6CB32%40topquadrant.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/0bb1859c67684eeda39738f345264975%40tno.nl.