RE: [topbraid-users] discriminating for context
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 michel.bo...@tno.nlmailto:michel.bo...@tno.nl Locationhttp://www.tno.nl/locaties/DTM [cid:image001.gif@01CF798E.A4D08680]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 [mailto:topbraid-users@googlegroups.com] On Behalf Of Holger Knublauch Sent: dinsdag 27 mei 2014 0:56 To: topbraid-users@googlegroups.com Subject: Re: [topbraid-users] discriminating for context Hi Michel, just a meta-response: for general modeling advice that is unrelated to TopBraid, you may want to post your question to http://answers.semanticweb.com/ where you should also get a wider range of viewpoints. HTH Holger On 5/27/2014 0:34, Bohms, H.M. (Michel) wrote: Dear all, I'd like your advice on a specific modelling pattern. In our taxonomies we use as much as possible discriminators that are datatype properties that get a class-level value (hasValue) relevant for all individuals. Sometimes however, we want to discriminate according to something like application area that refers to a (another) class in the ontology. We cannot do a similar thing as with datatype property discriminators (like a discriminating object property) because we don't want to discriminate wrt values/refs of classes but more on the classes itself (its more a meta object property in fact). So for now we define an datatype property applicationArea and put the relevant class names as enumeration items. Clearly this feels a bit double and asking for inconsistencies (keeping relevant classes and related enumeration items in sync). We would welcome ideas on THE way to do this in OWL (would it involve for instance reification?). I want to conclude with a simple example. A. Class Engine (next to Class Car, Plane, Ship,...) B. DatatypeProperty aplicationArea, datatype [Car, Plane, Ship,] C. Class CarEngine SubClassOf Engine aplicationArea hasValue Car but maybe better done something like: A. Class Engine, Car, Plane, Ship B. ObjectProperty applicationArea (with range: owl:Class) (we don't like this because we want to model properties as datatypeproperties...) C. Class CarEngine SubClasOf Engine applicationArea hasValue Car or better??? Thx a lot, Michel and Lieke 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 michel.bo...@tno.nlmailto:michel.bo...@tno.nl Locationhttp://www.tno.nl/locaties/DTM [cid:image001.gif@01CF798E.A4D08680]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 Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.commailto:topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.commailto:topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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.commailto:topbraid-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.commailto:topbraid-users@googlegroups.com To unsubscribe from this group, send email to
[topbraid-users] Re: convert from xsd:string to rdf:XMLLiteral
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 the ?.. antet. Then I have an XML return node, which shows binding xml with the same text (it is a sparql expression binding, the usual that i use). Coming out of the function and going to the next node in the upper function, the next module is another function expecting an rdf:XMLLiteral typed value. I see in debugger that that parameter is not bound to anything when bindings are applied,even though i triple checked that the variable is routed and i can see it routed with gray arrows in the bottom and upper part of the 2 modules. i use TBC=ME 4.4.0. Thanks Nicu On Monday, May 26, 2014 6:06:28 PM UTC+3, Nicolae Marasoiu wrote: Hi, I use sml:PostRequest and have a resulting xsd:string value, holding an XML data string payload. The next step would be to convert it to RDF. But sml:ConvertXMLToRDF takes an rdf:XmlLiteral value. How to convert between the 2 types? Thanks, Nicu -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
[topbraid-users] Re: convert from xsd:string to rdf:XMLLiteral
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, 2014 11:22:58 AM UTC+3, Nicolae Marasoiu wrote: 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 the ?.. antet. Then I have an XML return node, which shows binding xml with the same text (it is a sparql expression binding, the usual that i use). Coming out of the function and going to the next node in the upper function, the next module is another function expecting an rdf:XMLLiteral typed value. I see in debugger that that parameter is not bound to anything when bindings are applied,even though i triple checked that the variable is routed and i can see it routed with gray arrows in the bottom and upper part of the 2 modules. i use TBC=ME 4.4.0. Thanks Nicu On Monday, May 26, 2014 6:06:28 PM UTC+3, Nicolae Marasoiu wrote: Hi, I use sml:PostRequest and have a resulting xsd:string value, holding an XML data string payload. The next step would be to convert it to RDF. But sml:ConvertXMLToRDF takes an rdf:XmlLiteral value. How to convert between the 2 types? Thanks, Nicu -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
[topbraid-users] 2014-05-27T14:06:11+0300 is not an xsd:dateTime value?
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: org.topbraid.spin.sparqlmotion.modules.SMException: The #39;dateSent#39; element is invalid - The value #39;2014-05-27T14:06:11+0300#39; is invalid according to its datatype #39;DateTime#39; - The string #39;2014-05-27T14:06:11+0300#39; is not a valid DateTime value. However, according to http://www.schemacentral.com/sc/xsd/t-xsd_dateTime.html, 2014-05-27T14:06:11+0300 should be a valid xsd dateTime value! Please advice, Nicu -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
[topbraid-users] how to deserialize RDF from XML?
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 Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
[topbraid-users] Re: how to deserialize RDF from XML?
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. 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 Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
[topbraid-users] Can RDF be returned from a function directly?
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 to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
Re: [topbraid-users] 2014-05-27T14:06:11+0300 is not an xsd:dateTime value?
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 literal is a string with the xsd:type appended, e.g. "2014-05-27T14:06:11+0300"^^xsd:dateTime. In your case the result seems to be "'2014-05-27T14:06:11+0300'"^^xsd:dateTime - not the extra quote that makes it illegal syntax for xsd:dateTime. -- Scott On 5/27/2014, 6:10 AM, Nicolae Marasoiu wrote: 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: org.topbraid.spin.sparqlmotion.modules.SMException: The #39;dateSent#39; element is invalid - The value #39;2014-05-27T14:06:11+0300#39; is invalid according to its datatype #39;DateTime#39; - The string #39;2014-05-27T14:06:11+0300#39; is not a valid DateTime value. However, according to http://www.schemacentral.com/sc/xsd/t-xsd_dateTime.html, 2014-05-27T14:06:11+0300 should be a valid xsd dateTime value! Please advice, Nicu -- -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout. -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
[topbraid-users] both sm:if and sm:else called!
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 Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
[topbraid-users] typing issue
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; depc:valueOrigin Derived^^xsd:string; depc:valueType Expected^^xsd:string; depc:hasTimePointProperty ?tpuri . ?tpuri a depc:TimePointProperty; depc:timeStamp ?timeStamp; depc::e-Production ?eProduction1. } WHERE { SELECT ?eNeighbourhood ?ppuri ?tpuri ?timeStamp ((SUM(?eProduction2)) AS ?eProduction1) WHERE { ?eNeighbourhood a depc:E-Neighbourhood . ?eNeighbourhood dcterms:hasPart ?part . ?part depc:hasComplexProperty ?ProfileProperty2 . ?ProfileProperty2 depc:hasTimePointProperty ?TimePointProperty2 . ?TimePointProperty2 depc:e-Production ?eProduction2 . ?TimePointProperty2 depc:timeStamp ?timeStamp . BIND (IRI (concat(http://www.modelservers.org/public/ontologies/neighbourhood-example.ttl#ProfileProperty_N;, strafter(str(?eNeighbourhood),_), -P)) AS ?ppuri) . BIND (IRI (concat(http://www.modelservers.org/public/ontologies/neighbourhood-example.ttl#TimePointProperty_N;, strafter(str(?eNeighbourhood),_), -P,str(hours(?timeStamp AS ?tpuri) . } GROUP BY ?timeStamp ?eNeighbourhood ?ppuri ?tpuri } Guess its caused by the float returning SUM function? (even then: why this full uri here and nopt the name only) Thx 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 michel.bo...@tno.nlmailto:michel.bo...@tno.nl Locationhttp://www.tno.nl/locaties/DTM [cid:image003.gif@01CF79CF.7D391D80]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 Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
Re: [topbraid-users] typing issue
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 type triple. If you add a new property, depc:e-Production, to the model(datatype, range of xsd:float), it will appear with the qname. -- Scott On 5/27/2014, 10:17 AM, Bohms, H.M. (Michel) wrote: Asserted it looks like: When infered with spin I get: With query: CONSTRUCT { ?eNeighbourhood depc:hasComplexProperty ?ppuri . ?ppuri a depc:ProfileProperty; depc:valueKind "Nominal"^^xsd:string; depc:valueOrigin "Derived"^^xsd:string; depc:valueType "Expected"^^xsd:string; depc:hasTimePointProperty ?tpuri . ?tpuri a depc:TimePointProperty; depc:timeStamp ?timeStamp; depc::e-Production ?eProduction1. } WHERE { SELECT ?eNeighbourhood ?ppuri ?tpuri ?timeStamp ((SUM(?eProduction2)) AS ?eProduction1) WHERE { ?eNeighbourhood a depc:E-Neighbourhood . ?eNeighbourhood dcterms:hasPart ?part . ?part depc:hasComplexProperty ?ProfileProperty2 . ?ProfileProperty2 depc:hasTimePointProperty ?TimePointProperty2 . ?TimePointProperty2 depc:e-Production ?eProduction2 . ?TimePointProperty2 depc:timeStamp ?timeStamp . BIND (IRI (concat("http://www.modelservers.org/public/ontologies/neighbourhood-example.ttl#ProfileProperty_N", strafter(str(?eNeighbourhood),"_"), "-P")) AS ?ppuri) . BIND (IRI (concat("http://www.modelservers.org/public/ontologies/neighbourhood-example.ttl#TimePointProperty_N", strafter(str(?eNeighbourhood),"_"), "-P",str(hours(?timeStamp AS ?tpuri) . } GROUP BY ?timeStamp ?eNeighbourhood ?ppuri ?tpuri } Guess its caused by the float returning SUM function? (even then: why this full uri here and nopt the name only) Thx 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 Emichel.bo...@tno.nl Location 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 Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to
[topbraid-users] Project creation from (very) large model
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 no way to stop it (as far as I can tell). It would be nice to have both a status of such an operation as well as the ability to cancel without forcing TBC to quit (very messy). Or is there something like this already and I just missed it? Jac -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
Re: [topbraid-users] Project creation from (very) large model
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 FAQ ("How do I open a RDF/OWL file in Composer?" at http://www.topquadrant.com/knowledge-assets/faq/tbc/) to copy the file into the workspace and open it. Usually 500k triples can be loaded into 2Gb of memory without problems. The recommended approach for larger models would be the following: 1. Create a Project (File New Project, General/Project, click Next and provide a name 2. move the text serialization file (.ttl. .nt, .rdf) into the project via copy/past or drag/drop from your file system. This is your FMA model 3. Right-click on the new project and choose New RDF/OWL Jena TDB Database *Jena SDB could be used also if you have a relational back-end). 4. With the file created in step 3 open in Composer, right-click on the text serialization file (FMA model) and choose Import TopBraid Composer Import Triples form this File into current Model This will transfer the text serialization file into the RDF back-end where it can be queried, etc. Note the only real difference between this and opening a text serialization file is that the triples are loaded on-demand. By contrast, the text serialization is always brought into memory. -- Scott On 5/27/2014, 1:15 PM, Jack Hodges wrote: 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 no way to stop it (as far as I can tell). It would be nice to have both a status of such an operation as well as the ability to cancel without forcing TBC to quit (very messy). Or is there something like this already and I just missed it? Jac -- -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout. -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
Re: [topbraid-users] both sm:if and sm:else called!
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 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 Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout. -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
Re: [topbraid-users] Can RDF be returned from a function directly?
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 MyLastModule and the engine will automatically bypass the serialization of the sml:ReturnRDF and instead use the result RDF graph directly. The serialization only happens if you call ex:MyFunction from the outside, as a web service. HTH Holger On 5/27/2014 23:46, Nicolae Marasoiu wrote: 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 to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout. -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.
Re: [topbraid-users] Importing a Spreadsheet from a URL
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 On 5/28/2014 6:37, Tim Smith wrote: Hi Mark, Thanks for the suggestion. The spreadsheet sitting at the end of the URL is an Excel 2003 spreadsheet file that I need to be able to convert into instances in the spreadsheet ontology. The import as text module will bring in the contents of the file and I can save it as an XLS into the workspace but the Import Excel Cell Instances module will not import the file. It fails with the error below. Is there another approach that I'm missing? It seems ideal if the Import Excel Cell Instances module could import directly from a URL. Thanks in advance for your help, Tim java.lang.reflect.InvocationTargetException at org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:153) at org.topbraidcomposer.core.util.ThreadUtil$1$1.run(ThreadUtil.java:64) at java.lang.Thread.run(Unknown Source) Caused by: org.topbraid.spin.sparqlmotion.modules.SMException: Failed to load Excel file C:\Semantic Tools\TBC-Workspaces\TBC431-5-08-14\RMQ\Data\sharepointtest.xls at org.topbraid.spreadsheets.excel.module.ImportExcelCellInstancesModule.createGraph(ImportExcelCellInstancesModule.java:33) at org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getRDFOutput(AbstractSMModule.java:863) at org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.executeModule(ExecutionEngineImpl.java:178) at org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.execute(ExecutionEngineImpl.java:120) at org.topbraidcomposer.sparqlmotion.views.console.SPARQLMotionConsole.execute(SPARQLMotionConsole.java:79) at org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:142) ... 2 more Caused by: jxl.read.biff.BiffException: Unable to recognize OLE stream at jxl.read.biff.CompoundFile.init(CompoundFile.java:116) at jxl.read.biff.File.init(File.java:127) at jxl.Workbook.getWorkbook(Workbook.java:221) at jxl.Workbook.getWorkbook(Workbook.java:198) at org.topbraid.spreadsheets.excel.module.ImportExcelCellInstancesModule.createGraph(ImportExcelCellInstancesModule.java:30) ... 7 more On Fri, May 23, 2014 at 12:52 PM, Mark Graham m...@topquadrant.com mailto:m...@topquadrant.com wrote: Hi Tim, An option to try - bring it in as a text file then use sml:ConvertSpreadsheetToRDF and function sml:ImportTextFromURL. Some details of these can be found in the help menu as well - sparqlmotion function library. Thanks, Mark Thanks, Mark Mark Graham TopQuadrant Support *PRODUCT SUPPORT:* supp...@topquadrant.com mailto:supp...@topquadrant.com http://www.topquadrant.com/products/support.html On Fri, May 23, 2014 at 8:29 AM, Tim Smith smith.ts...@gmail.com mailto:smith.ts...@gmail.com wrote: Hi, I have a need to import a spreadsheet into an SM script from a URL (it's sitting in a content management system) The spreadsheet needs to be imported using the Spreadsheet Ontology. The ImportRDFFromURL module does not support any structure other than RDF/XML and the sml:ImportExcelCellInstances module only works on files in the workspace so I'm at a loss as to how I can access a file sitting at the end of a URL. Thanks in advance for your input, Tim -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com mailto:topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com mailto:topbraid-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout. -- -- You received this message because you are subscribed to the Google
Re: [topbraid-users] Re: convert from xsd:string to rdf:XMLLiteral
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 5/27/2014 18:42, Nicolae Marasoiu wrote: 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, 2014 11:22:58 AM UTC+3, Nicolae Marasoiu wrote: 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 the ?.. antet. Then I have an XML return node, which shows binding xml with the same text (it is a sparql expression binding, the usual that i use). Coming out of the function and going to the next node in the upper function, the next module is another function expecting an rdf:XMLLiteral typed value. I see in debugger that that parameter is not bound to anything when bindings are applied,even though i triple checked that the variable is routed and i can see it routed with gray arrows in the bottom and upper part of the 2 modules. i use TBC=ME 4.4.0. Thanks Nicu On Monday, May 26, 2014 6:06:28 PM UTC+3, Nicolae Marasoiu wrote: Hi, I use sml:PostRequest and have a resulting xsd:string value, holding an XML data string payload. The next step would be to convert it to RDF. But sml:ConvertXMLToRDF takes an rdf:XmlLiteral value. How to convert between the 2 types? Thanks, Nicu -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout. -- -- You received this message because you are subscribed to the Google Group TopBraid Suite Users, the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to topbraid-users@googlegroups.com To unsubscribe from this group, send email to topbraid-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- 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. For more options, visit https://groups.google.com/d/optout.