RE: [topbraid-users] discriminating for context

2014-05-27 Thread Bohms, H.M. (Michel)
Hi Holger, Thx a lot! Non-meta response still very much appreciated :) but in future I will post generic questions to the other list, Michel Dr. ir. H.M. (Michel) Bohms Sr. Research Scientist Structural Reliability T +31 (0)88 866 31 07 M +31 (0)63 038 12 20 E

[topbraid-users] Re: convert from xsd:string to rdf:XMLLiteral

2014-05-27 Thread Nicolae Marasoiu
Hi Scott, No, unfortunately this happens to me and an experienced colleague who just worked around it with xpath to avoid the impossible conversion. So I have an xsd:string stored in a ?xmlStringResult output variable from the PostRequest. I see the XML in debug, very well formed and including

[topbraid-users] Re: convert from xsd:string to rdf:XMLLiteral

2014-05-27 Thread Nicolae Marasoiu
Hi again, Yes, it works after removing the inner function. Directly binding an xsd:string to the rdf:XmlLiteral works indeed. Somehow, passing through ReturnXML node messed it up. Also my colleague said it does not work for him because he does not have ?.. antet. Thanks On Tuesday, May 27,

[topbraid-users] 2014-05-27T14:06:11+0300 is not an xsd:dateTime value?

2014-05-27 Thread Nicolae Marasoiu
Hi, I am trying to generate the currend xsd:dateTime to insert in a dynamic XML payload with: spif:dateFormat(now(), -MM-dd)) + T + spif:dateFormat(now(), HH:mm:ssZ) Sending out content yields XSD validation exception, probably from the remoint endpoint XSD validation: Reason:

[topbraid-users] how to deserialize RDF from XML?

2014-05-27 Thread Nicolae Marasoiu
Hi, I have a sml:SerializeSparqlResults in an external code and i need to deserialize it back to RDF in another part of the system. How can I do this? thanks Nicu -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include

[topbraid-users] Re: how to deserialize RDF from XML?

2014-05-27 Thread Nicolae Marasoiu
Hi, Found, convert text in one of the serializations formats back to RDF function. Thanks On Tuesday, May 27, 2014 4:12:07 PM UTC+3, Nicolae Marasoiu wrote: Hi, I have a sml:SerializeSparqlResults in an external code and i need to deserialize it back to RDF in another part of the system.

[topbraid-users] Can RDF be returned from a function directly?

2014-05-27 Thread Nicolae Marasoiu
Hi, ReturnRDF has a sml:serialization argument, which suggests me that the RDF triple set need to be serialized in order to be used in the calling function. Can RDF results be shared as values without being serialized? Thanks, Nicu -- -- You received this message because you are subscribed

Re: [topbraid-users] 2014-05-27T14:06:11+0300 is not an xsd:dateTime value?

2014-05-27 Thread Scott Henninger
Nicolae;  On creating the Date time, why not just use SPARQL now() directly, i.e.: BIND(now() AS ?date) ...or SELECT (now() AS ?date)... In terms of the error message, the leading and trailing apostrophe is probably to blame.  The syntax of ant RDF

[topbraid-users] both sm:if and sm:else called!

2014-05-27 Thread Nicolae Marasoiu
Hi, Just cloned some modules, and i checked that in the BranchByAsk I only have if and else, no next. However nodes on both if and else branches are hit. This really looks like a bug, can you advice? Thanks Nicu -- -- You received this message because you are subscribed to the Google Group

[topbraid-users] typing issue

2014-05-27 Thread Bohms, H.M. (Michel)
Asserted it looks like: [cid:image001.png@01CF79CF.7D391D80] When infered with spin I get: [cid:image002.png@01CF79CF.7D391D80] With query: CONSTRUCT { ?eNeighbourhood depc:hasComplexProperty ?ppuri . ?ppuria depc:ProfileProperty; depc:valueKind Nominal^^xsd:string;

Re: [topbraid-users] typing issue

2014-05-27 Thread Scott Henninger
Michel; Yes, the type should be float (for both, actually) and the sum aggregate will default to float if any of the values are floating point (see SPARQL 1.1 specs for more). In terms of the fully qualified URI, chances are that depc:e-Production does not have a

[topbraid-users] Project creation from (very) large model

2014-05-27 Thread Jack Hodges
I was trying to load a large model (FMA) so I could take a look at it. TBCME said this was ill advised and said it could create a project that would point to the model and said ok. I am sure TBCME would have been happy to continue doing this but I decided to cancel the operation - but there is

Re: [topbraid-users] Project creation from (very) large model

2014-05-27 Thread Scott Henninger
Jack; Not sure what process you were using to load.  If there is a specific message associated with "TBCME said this was ill advised", then we may be able to provide more specific advice. If the file contents can fit into memory, then use the procedure found in the

Re: [topbraid-users] both sm:if and sm:else called!

2014-05-27 Thread Holger Knublauch
Do you have a reproducible test scenario or further details? You can take this off-list if you have confidential data. Holger On 5/28/2014 0:36, Nicolae Marasoiu wrote: Hi, Just cloned some modules, and i checked that in the BranchByAsk I only have if and else, no next. However nodes on

Re: [topbraid-users] Can RDF be returned from a function directly?

2014-05-27 Thread Holger Knublauch
I assume you are talking about SPARQLMotion functions, i.e. SPIN functions that have an sm:returnModule. If you have such a function ex:MyFunction that ends with sml:ReturnRDF, then you can indeed use the function as a module, such as in MyFirstModule sm:next ex:MyFunction sm:next

Re: [topbraid-users] Importing a Spreadsheet from a URL

2014-05-27 Thread Holger Knublauch
Hi Tim, I cannot think of another solution out of the box. Importing Excel files indeed currently requires local files, not URLs. We could change that in a future version, or we could add a module to download any file into the workspace, but neither of that would help you short-term. Holger

Re: [topbraid-users] Re: convert from xsd:string to rdf:XMLLiteral

2014-05-27 Thread Holger Knublauch
Yes just to confirm - SM functions embedded into SM scripts may either return a graph (sml:ReturnRDF) or a node (sml:ReturnNode). sml:ReturnXML is not supported in those cases. So maybe you are able to use sml:ReturnNode to return the XML nodes as a single string literal. Holger On