?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:

[cid:[email protected]]

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….




Michel Böhms
Data Scientist
Unit Buildings, Infrastructure & Maritime


Mobile +31 630381220
E-mail  [email protected]<mailto:[email protected]>

Location<http://www.tno.nl/locations/DTS>



[cid:[email protected]]<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: [email protected] <[email protected]> On 
Behalf Of Richard Cyganiak
Sent: woensdag 2 maart 2022 17:50
To: topbraid-users list <[email protected]>
Subject: Re: [topbraid-users] uri-generation issue shacl/sparql


On 2 Mar 2022, at 16:40, David Price 
<[email protected]<mailto:[email protected]>> wrote:

Likely you need to cast ?time to be xsd:string. CONCAT requires strings.

Not just CONCAT but also ENCODE_FOR_URI. I would think both ?time and ?out_1 
need to be cast to string.

..., encode_for_uri(str(?time)), encode_for_uri(str(?out_1))


Richard






<image001.png>

Cheers,
David


On 2 Mar 2022, at 15:36, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
<[email protected]<mailto:[email protected]>> 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 Scientist
Unit Buildings, Infrastructure & Maritime


Mobile +31 630381220
E-mail  [email protected]<mailto:[email protected]>

Location<http://www.tno.nl/locations/DTS>



<image002.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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/f65be9895ec9475c8954b836115c84fc%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/f65be9895ec9475c8954b836115c84fc%40tno.nl?utm_medium=email&utm_source=footer>.

UK +44 (0) 7788 561308
US +1 (336) 283-0808


--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/1550320D-904F-47E4-B814-268A8A581E74%40topquadrant.com<https://groups.google.com/d/msgid/topbraid-users/1550320D-904F-47E4-B814-268A8A581E74%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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/DCCBF6E5-FFCE-4E85-803B-C71D7388C387%40topquadrant.com<https://groups.google.com/d/msgid/topbraid-users/DCCBF6E5-FFCE-4E85-803B-C71D7388C387%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/06fb77cf899a4a2dad048eb462c832df%40tno.nl.

Reply via email to