[topbraid-users] SPARQLMotion Convert RDF To XML doesn't seems to work

2020-02-27 Thread Colin Meerveld
Hi, I try to use a SPARQLMotion script to convert (semantic) xml into a XML document. Unfortunately i am not able to let it work. Here are the main Modules: export:ApplyTopSPIN a sml:ApplyTopSPIN ; sm:next export:ConvertRDFToXML ; sml:flatten false ; sml:predicate spin:rule ;

Re: [topbraid-users] SPARQLMotion Convert RDF To XML doesn't seems to work

2020-02-27 Thread Holger Knublauch
Hi Colin, are you sure you want to set sml:replace true? That would remove triples that may be needed, e.g. the imported graphs containing the sxml triples. It's tricky to help without seeing details. Are you able to package up a minimal executable set of files for us to run and reproduce

Re: [topbraid-users] dat range question

2020-02-27 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
- hi holger Some more on this - would tbc syntactically handle this constraint type? - would onDatatype not be double since range is already xsd:double? - would i need propertychaining first since 2 steps? ex:height.rdf:value... Thx again! Michel Op 26 feb. 2020 00:10 schreef Holger Knublauch

Re: [topbraid-users] SPARQLMotion Convert RDF To XML doesn't seems to work

2020-02-27 Thread Colin Meerveld
Hi Holger, Thanks for helping! I thought sml:replace removed the old inferred data (as you can do manually in composer). This may be the problem and will try it as soon as i am in the office. You can find the source on github. It is quite compact. See: https://github.com/btotr/skos2archimate

Re: [topbraid-users] SPARQLMotion Convert RDF To XML doesn't seems to work

2020-02-27 Thread Irene Polikoff
Sml:replace removes any data that was provided as input to a step. The output of the step then becomes only data that was produced by the step itself. Sent from my iPhone > On Feb 27, 2020, at 5:44 AM, Colin Meerveld wrote: > > Hi Holger, > > Thanks for helping! I thought sml:replace removed

[topbraid-users] [SHACL-API] Scrolling through an rdf:List

2020-02-27 Thread Angelo Frozza
Hi, I'm creating a function to test the minimum number of elements in an rdf:List. I am using the SHACL-API to run this function. I can't use sh:minCount or sh:maxCount because they disregard the existence of duplicate elements in the rdf:List, and in my case study, I can have more than one

Re: [topbraid-users] [SHACL-API] Scrolling through an rdf:List

2020-02-27 Thread Ralph TQ [Gmail]
Angelo Just a first glance. I noticed a spelling mistake: lenght++; Ralph Hodgson, @ralphtq CTO, TopQuadrant, @TopQuadrant > On Feb 27, 2020, at 8:44 AM, Angelo Frozza wrote: > >  > Hi, > > I'm creating a function to test the minimum number of elements in an > rdf:List. I am using the

Re: [topbraid-users] [SHACL-API] Scrolling through an rdf:List

2020-02-27 Thread Angelo Frozza
Ralph, True, there was this error. Thanks. I already corrected it in the online version of the function. But the problem of infinite looping continues. Hugs, Angelo Em quinta-feira, 27 de fevereiro de 2020 10:55:15 UTC-3, Ralph Hodgson escreveu: > > Angelo > > Just a first glance. I noticed

Re: [topbraid-users] SPARQLMotion Convert RDF To XML doesn't seems to work

2020-02-27 Thread Irene Polikoff
I doubt it is sufficient since it only produces new, inferred triples and, as Holger said, other things that may be needed, like at minimum references to included graphs I can’t offer that much in terms of advise as I don’t have time to debug the code. You may want to use SM debugger to look

Re: [topbraid-users] SPARQLMotion Convert RDF To XML doesn't seems to work

2020-02-27 Thread Colin Meerveld
I guess that the data produces by the step is sufficient. Anyhow i tried to keep the triples by setting sml:replace to false but it doesn't seems to matter. Any other thoughts? On Thursday, February 27, 2020 at 3:53:22 PM UTC+1, Irene Polikoff wrote: > > Sml:replace removes any data that was

Re: [topbraid-users] SPARQLMotion Convert RDF To XML doesn't seems to work

2020-02-27 Thread Holger Knublauch
Hi Colin, your script was *almost* correct. The difference (with the attached, fixed, version) is that the sml:document of sml:ConvertRDFToXML needs to point to an instance of sxml:Document which then points at the root element using sxml:root. So I have created a dummy Document such as

Re: [topbraid-users] dat range question

2020-02-27 Thread Holger Knublauch
On 27/02/2020 21:27, 'Bohms, H.M. (Michel)' via TopBraid Suite Users wrote: - hi holger Some more on this - would tbc syntactically handle this constraint type? Not really. You could enter the definitions using source code. - would onDatatype not be double since range is already

Re: [topbraid-users] [SHACL-API] Scrolling through an rdf:List

2020-02-27 Thread Holger Knublauch
Hi Angelo, apologies but this type of very detailed question goes beyond what we can afford to answer for TBC-FE and API users. I hope you understand the commercial pressures. Having said this I believe a problem is the !== comparison in var nil =