[topbraid-users] sparql question(s) related to BIND

2014-09-03 Thread Nicolae Marasoiu
Hi, I have an issue understanding BIND keyword I understand it creates a new variable (name, value) pair / binding within a {} scope However, the spec also says it breaks the graph pattern scope {} into 2 {}s but does not clarify what that means (especially when the previous {} does not bring

[topbraid-users] isBound returns false on a ?var with string value!

2014-08-26 Thread Nicolae Marasoiu
Hi, I have a swp like this: ui:group let:zgecko={= xsd:String(elh-fun:getASiblingOverlappingHireId( ?lastHireId, ?etd)) } .. ui:if.. .. ui:elseif ui:condition={= smf:isBound(?zgecko) }

Re: [topbraid-users] impossible to remove a piece of code from ui:prototype? :(

2014-08-21 Thread Nicolae Marasoiu
, 12:33 AM, Nicolae Marasoiu wrote: Hi, Editing ui:errorPrototype, I remove a piece of code. I refreshed, the same. Restarted, the same. Reimported fully the project after stopping TBC, removing workspace, the same. Where can this state be? I triple checked the file content and the piece

[topbraid-users] impossible to remove a piece of code from ui:prototype? :(

2014-08-20 Thread Nicolae Marasoiu
Hi, Editing ui:errorPrototype, I remove a piece of code. I refreshed, the same. Restarted, the same. Reimported fully the project after stopping TBC, removing workspace, the same. Where can this state be? I triple checked the file content and the piece of code is no longer there. I have been

Re: [topbraid-users] Connection refused as reported by TBC/TBL but works from browser

2014-07-15 Thread Nicolae Marasoiu
? These are the kinds of questions Nick was alluding to that may help us narrow down possible causes and either verify a defect or find an effective workaround. TIA -- Scott On Jul 11, 2014, at 5:11 PM, Nicolae Marasoiu nicolae@gmail.com javascript: wrote: Hi, We receive the stack trace below

Re: [topbraid-users] Connection refused as reported by TBC/TBL but works from browser

2014-07-15 Thread Nicolae Marasoiu
(8080) -Dhttp.nonProxyHosts=hosts that should not be accessed through the proxy $JAVA_OPTS Thanks, Daniel On Tuesday, July 15, 2014 8:57:32 AM UTC+2, Nicolae Marasoiu wrote: Hi, Proxy setup as jvm parameters to tomcat as mentioned. Since the last restart 2 days ago PostRequest

Re: [topbraid-users] Connection refused as reported by TBC/TBL but works from browser

2014-07-15 Thread Nicolae Marasoiu
-client-and-http-proxies/ Thanks On Tuesday, July 15, 2014 2:49:16 PM UTC+3, Nicolae Marasoiu wrote: Hi all, So I just to reiterate: - the only environment where we have the issue (the one proxied with jvm params to tomcat as per Daniel's details) - the issue is consistent: Sml:PostRequest

Re: [topbraid-users] Connection refused as reported by TBC/TBL but works from browser

2014-07-12 Thread Nicolae Marasoiu
and either verify a defect or find an effective workaround. TIA -- Scott On Jul 11, 2014, at 5:11 PM, Nicolae Marasoiu nicolae.maras...@gmail.com wrote: Hi, We receive the stack trace below from the container we are using (Tomcat running TopBraid semantic software TBL). However a similar

[topbraid-users] Connection refused as reported by TBC/TBL but works from browser

2014-07-11 Thread Nicolae Marasoiu
Hi, We had 2 instances where a web service over http using basic auth reported Authentication failed, but with Connection refused as the stack cause (ConnectException). Restarting TBC solved it. With TBL we did not restart yet. However, Connection refused is supposed to be a response from the

Re: [topbraid-users] Connection refused as reported by TBC/TBL but works from browser

2014-07-11 Thread Nicolae Marasoiu
On Fri, Jul 11, 2014 at 9:55 AM, Nicolae Marasoiu nicolae.maras...@gmail.com wrote: Hi, We had 2 instances where a web service over http using basic auth reported Authentication failed, but with Connection refused as the stack cause (ConnectException). Restarting TBC solved it. With TBL we

[topbraid-users] windows 4.4.1 vs linux 4.4.1

2014-06-24 Thread Nicolae Marasoiu
Hi, We have some SWP code which works as intended on Linux (the dev used 4.4.1 on ubuntu). But when TBC 4.4.1 on windows is refreshed, restarted, resources (top spin, swp, sparql motion) reloaded, etc, it does not work. I find it very hard to say exactly what does not work. Thanks, Nicu --

[topbraid-users] {E201} Multiple children of property element

2014-05-28 Thread Nicolae Marasoiu
Hi, I have a module of type sml:ConvertTextToRDF with sm:XML serialization type, The payload to parse / deserialize into RDF / sparql restult set is: ?xml version=1.0? sparql xmlns=http://www.w3.org/2005/sparql-results#; head variable name=returnStatus/ variable name=resourceId/

[topbraid-users] Re: {E201} Multiple children of property element

2014-05-28 Thread Nicolae Marasoiu
The XML payload was generated using sml:SerializeSPARQLResults. The same error occurs when i bind ?error correctly (as a sparql expression, as input to the function generating rdf with sparql and the serializing) On Wednesday, May 28, 2014 10:11:36 AM UTC+3, Nicolae Marasoiu wrote: Hi, I

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

2014-05-28 Thread Nicolae Marasoiu
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

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

2014-05-28 Thread Nicolae Marasoiu
as Z (the timezone part) instead of the +03:00 wanted by xsd. Please see details in my previous message below/above. Thanks Nicu On Wednesday, May 28, 2014 1:15:19 PM UTC+3, Nicolae Marasoiu wrote: Hi, The cause is that the timezone as represented by java Z format is +0300 not +03:00. Can

[topbraid-users] sml:PostRequest gives Authentication error even if reality is Connectino refused/cannot connect

2014-05-28 Thread Nicolae Marasoiu
Hi, I access an HTTP endpoint with Basic Authentication using sml:PostRequest. It would be natural for the error message to accurately indicate the cause of miscommunication such as: - connection refused (typically the peer OS got the TCP CONNECT but no service is listening on that port) -

[topbraid-users] sml:FilterByConstruct does not filter

2014-05-28 Thread Nicolae Marasoiu
Hi, I have a FilterByConstruct with: CONSTRUCT { ?s ?p ?o . } WHERE { ?s ?p ?o . } My understanding was that it would filter all the matching triplets: all, in this case. However I see the incoming graph as unfiltered after the module has passed the filter. Please advice, Nicu --

[topbraid-users] Re: sml:FilterByConstruct does not filter

2014-05-28 Thread Nicolae Marasoiu
Ok, it does filter sorry! I was confused that i saw subgraphs in debug under the TreadSafeGraph, i just that they are just some kind of history? On Wednesday, May 28, 2014 4:26:49 PM UTC+3, Nicolae Marasoiu wrote: Hi, I have a FilterByConstruct with: CONSTRUCT { ?s ?p ?o . } WHERE

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

2014-05-27 Thread Nicolae Marasoiu
, 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

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

2014-05-27 Thread Nicolae Marasoiu
, 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

[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

[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

Re: [topbraid-users] how to call a web service from a TopBraid SparqlMotion script?

2014-05-26 Thread Nicolae Marasoiu
Composer-ME, and under Reference open the SPARQLMotion Module Library Reference section. -- Scott On 5/22/2014, 6:33 AM, Nicolae Marasoiu wrote: Hi, I need to use a SOAP integration from a SparqlMotion function. Can you please suggest how to do it? I heard about an ImportXMLFromURL

[topbraid-users] Re: how to call a web service from a TopBraid SparqlMotion script?

2014-05-26 Thread Nicolae Marasoiu
Hi, It worked, with subclassing, Thanks! On Thursday, May 22, 2014 2:33:10 PM UTC+3, Nicolae Marasoiu wrote: Hi, I need to use a SOAP integration from a SparqlMotion function. Can you please suggest how to do it? I heard about an ImportXMLFromURL, is this one way? Where can I find

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

2014-05-26 Thread Nicolae Marasoiu
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

[topbraid-users] how to call a web service from a TopBraid SparqlMotion script?

2014-05-22 Thread Nicolae Marasoiu
Hi, I need to use a SOAP integration from a SparqlMotion function. Can you please suggest how to do it? I heard about an ImportXMLFromURL, is this one way? Where can I find details about them, code snippets, documentation and philosophy underneath? Is it possible to make it work in Java and

[topbraid-users] ErrorHandlerFactory.java:84: Undefined prefix: xsd

2014-05-08 Thread Nicolae Marasoiu
Hi! I receive the following error in TBC 4.4.0 when: 1. Refreshing Top Braid registries, scripts 2. When executing certain scripts Do you have any hints of the reason and solution? Thanks Nicu Marasiou eclipse.buildId=unknown java.version=1.7.0_51 java.vendor=Oracle Corporation BootLoader

Re: [topbraid-users] TBC throws NPE on adding argument to function

2014-04-18 Thread Nicolae Marasoiu
longer stack traces. Be sure to reset that setting after capturing the exception, as it will have an impact on performance. -- Scott On 4/17/2014, 3:40 AM, Nicolae Marasoiu wrote: Hi, Steps: Open a sms.ttl. Scripts/Create new SM function/Add(argument) - select elhfnc:orgId (used

[topbraid-users] TBC throws NPE on adding argument to function

2014-04-16 Thread Nicolae Marasoiu
Hi, I try to create a new function with TBC 4.4. Scenario: Open Scripts/ create function/web service. On adding an argument, I select an URI/IRI to an existing Property type resource with range xsd:string, already used in other functions. Click Ok in add-arg popup. Result: First attempt,