Hello Pim; That kind of behavior is expected only when ?id is not
bound to a value.  For example,the following query:

SELECT ?object
WHERE {
LET (?id := smf:generateUUID())
    LET (?object := smf:buildURI ("http://www.bimtoolset.org/
ontologies/BB_coins.owl#_{?id}")).
}

Results in a binding for ?object such as:
  <http://www.bimtoolset.org/ontologies/
BB_coins.owl#_6cbe8818-2990-11b2-803a-d324a8b08df7>

Can you check and make sure that ?id is bound to a non-null value?  If
not, what version of Composer are you using and what OS/architecture?

-- Scott

On Dec 1, 3:41 am, "Helm, P.W. (Pim) van den" <[email protected]>
wrote:
> Hi all,
>
> I am translating an semantic-xml document to an ontology.
>
> Doing this I want the ID's used in the xml document (of format GUID) to 
> convert into an fragment identifier following the baseURI of my new ontology. 
> The GUIDs can start with a number but our usage of the fragments doesn't 
> allow this further allong the proces. So I want to add "_" infront of my ID 
> to overcome this issue.
>
>  The method I use for creating the URI using the fragment is:
>    LET (?object := smf:buildURI 
> ("http://www.bimtoolset.org/ontologies/BB_coins.owl#_{?id}";)).
>    or
>    LET (?object := smf:buildURI (":_{?id<http://#_{?id>}")).
>
>  Both result in the [?object] result showing only the "_" followed by the ID 
> without the baseURI and "#" infront. This seems not correct.
>
> Doing a similar creation without the "_" so:
>    LET (?object := smf:buildURI 
> ("http://www.bimtoolset.org/ontologies/BB_coins.owl#{?id}";)).
>    or
>    LET (?object := smf:buildURI (":{?id<http:///#_{?id>}")).
>
> has results with and without the baseURI infront. The ID's starting with a 
> number contain the baseURI infront (expected output), and the ID's NOT 
> starting with a number again don't contain the baseURI.
>
> Is this expected behavior or am I doing something wrong?
>
> with kind regards,
> Pim
> This e-mail and its contents are subject to the DISCLAIMER 
> athttp://www.tno.nl/disclaimer/email.html

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to