Why no Meting_1 result executing:

When I delete the 3rd part I get (it right):

So do I miss some function for the 3rd component?
Thx Michel
|
||||||||||||||||

On 2 Mar 2022, at 15:36, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:
Why no Meting_1 result executing:
<image001.png>
When I delete the 3rd part I get (it right):
<image003.png>
So do I miss some function for the 3rd component?Thx Michel
Michel Böhms
Data ScientistUnit Buildings, Infrastructure & Maritime
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/f65be9895ec9475c8954b836115c84fc%40tno.nl.
On 2 Mar 2022, at 16:40, David Price <dpr...@topquadrant.com> wrote:Likely you need to cast ?time to be xsd:string. CONCAT requires strings.
<image001.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/1550320D-904F-47E4-B814-268A8A581E74%40topquadrant.com.
?time is already string…
|
|
|
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/1550320D-904F-47E4-B814-268A8A581E74%40topquadrant.com.
?time already being a string I applied to third term:
SELECT *
WHERE {
?this rdf:type ri:Meting .
?this ri:time ?time .
OPTIONAL { ?this ri:out_1 ?out_1 } .
BIND (IRI (CONCAT (http://www.w3.org/ns/sosa/_, encode_for_uri (?time), encode_for_uri (str(?out_1)))) AS ?meting1) .
}
Now i have the right result:
![]()
It looked strange but is I guess as expected:
All : are encoded. I will put siome extra underscores in…
Thx a lot! Michel
Ps
Hope I now get it to work in the same way in shacl construct rule….
|
|
|
| ||||||||
From: topbrai...@googlegroups.com <topbrai...@googlegroups.com>
On Behalf Of Richard Cyganiak
Sent: woensdag 2 maart 2022 17:50
To: topbraid-users list <topbrai...@googlegroups.com>
Subject: Re: [topbraid-users] uri-generation issue shacl/sparql
On 2 Mar 2022, at 16:40, David Price <dpr...@topquadrant.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/DCCBF6E5-FFCE-4E85-803B-C71D7388C387%40topquadrant.com.
On 2 Mar 2022, at 17:12, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:
?time is already string…
Michel Böhms
Data ScientistUnit Buildings, Infrastructure & Maritime
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: topbrai...@googlegroups.com <topbrai...@googlegroups.com> On Behalf Of David Price
Sent: woensdag 2 maart 2022 17:40
To: 'Felix Sasaki' via TopBraid Suite Users <topbrai...@googlegroups.com>
Subject: Re: [topbraid-users] uri-generation issue shacl/sparqlLikely you need to cast ?time to be xsd:string. CONCAT requires strings.
<image003.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/ceda33e7debd4068a325a837be1c204c%40tno.nl.
Also shacl rules work perfectly now (mapping my tab-delimited txt measurement file via excel to w3c sosa & qudt ontology)!
Thx a lot! michel

|
|
|
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/2A404EE1-30E1-4EA1-97D0-994973075D32%40topquadrant.com.