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

2020-03-03 Thread Colin Meerveld
Great, this works!

Thanks,

Colin

On Sunday, March 1, 2020 at 10:53:14 PM UTC+1, Holger Knublauch wrote:
>
>
> On 28/02/2020 20:17, Colin Meerveld wrote:
>
> Works like a charm. Your help is much appreciated!  I did tried to add a 
> sxml:Document during the inference phase but somehow didn't had an affect. 
> Since it did worked manually i didn't thought of it anymore.  
>
> I still have a minor issue with the order of the output but could solve 
> this with a xslt transformation in-between. Just for my understanding the 
> sxml:order should tell the RDF-to-XML step to order the elements according 
> to this property, right?
>
> For historical reasons, the order of sibling XML elements is determined 
> based on the property http://www.topbraid.org/2007/05/composite.owl#index, 
> which has values such as 0, 1, 2, ...
>
> HTH
> Holger
>
>
>
> Thanks,
>
> Colin
>
> On Friday, February 28, 2020 at 12:07:04 AM UTC+1, Holger Knublauch wrote: 
>>
>> 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
>>
>> converter:TheDocument
>>   rdf:type sxml:Document ;
>>   sxml:root converter:model .
>>
>> and made that the value in the SM module. It now seems to work as 
>> expected.
>>
>> As a further minor change I changed the sml:xml as shown below to be a 
>> SPARQL variable expression, which avoids string substitution of the {?...} 
>> syntax. I believe that should work better.
>>
>> HTH
>> Holger
>>
>>
>> On 28/02/2020 01:50, Colin Meerveld wrote:
>>
>> 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 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 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
>>>
>>> Thanks,
>>>
>>> Colin
>>>
>>>
>>> On Thursday, February 27, 2020 at 10:28:59 AM UTC+1, Holger Knublauch 
>>> wrote: 

 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 locally? 
 Feel 
 free to send them to me off-list, if there is private data.

 Holger


 On 27/02/2020 18:27, Colin Meerveld wrote:

 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 ;
   sml:replace true ;
   sml:singlePass true ;
   rdfs:label "Apply Inferencing" ;
 .
 export:ConvertRDFToXML
   a sml:ConvertRDFToXML ;
   sm:outputVariable "archimatexml" ;
   sml:document converter:model ;
   rdfs:label "Convert RDF To XML" ;
 .

 The expected behavior is that the outputVariable archimatexml has some 
 xml structure but it is always empty. The way it does work is by save the 
 output of export:ApplyTopSPIN to a rdf file. Than i manually select the 
 generated file and choose export > XML from RDF in Composer. Do i miss 
 something?

 Cheers,

 Colin
 -- 
 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 topbrai...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/topbraid-users/8af614c5-7d4a-4475-8ebc-a0e0dab7c802%40googlegroups.com
  
 
 .

 -- 
>>> 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 

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

2020-03-01 Thread Holger Knublauch


On 28/02/2020 20:17, Colin Meerveld wrote:
Works like a charm. Your help is much appreciated! I did tried to add 
a sxml:Document during the inference phase but somehow didn't had an 
affect. Since it did worked manually i didn't thought of it anymore.


I still have a minor issue with the order of the output but could 
solve this with a xslt transformation in-between. Just for my 
understanding the sxml:order should tell the RDF-to-XML step to order 
the elements according to this property, right?


For historical reasons, the order of sibling XML elements is determined 
based on the property 
http://www.topbraid.org/2007/05/composite.owl#index, which has values 
such as 0, 1, 2, ...


HTH
Holger




Thanks,

Colin

On Friday, February 28, 2020 at 12:07:04 AM UTC+1, Holger Knublauch 
wrote:


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

converter:TheDocument
  rdf:type sxml:Document ;
  sxml:root converter:model .

and made that the value in the SM module. It now seems to work as
expected.

As a further minor change I changed the sml:xml as shown below to
be a SPARQL variable expression, which avoids string substitution
of the {?...} syntax. I believe that should work better.

HTH
Holger


On 28/02/2020 01:50, Colin Meerveld wrote:

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 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 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


Thanks,

Colin


On Thursday, February 27, 2020 at 10:28:59 AM UTC+1, Holger
Knublauch wrote:

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 locally? Feel free to send them to
me off-list, if there is private data.

Holger


On 27/02/2020 18:27, Colin Meerveld wrote:

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 ;
  sml:replace true ;
  sml:singlePass true ;
  rdfs:label "Apply Inferencing" ;
.
export:ConvertRDFToXML
  a sml:ConvertRDFToXML ;
  sm:outputVariable "archimatexml" ;
  sml:document converter:model ;
  rdfs:label "Convert RDF To XML" ;
.

The expected behavior is that the outputVariable
archimatexml has some xml structure but it is always
empty. The way it does work is by save the output of
export:ApplyTopSPIN to a rdf file. Than i manually
select the generated file and choose export > XML from
RDF in Composer. Do i miss something?

Cheers,

Colin
-- 
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
topbrai...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/topbraid-users/8af614c5-7d4a-4475-8ebc-a0e0dab7c802%40googlegroups.com

.


-- 
You received 

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

2020-02-28 Thread Colin Meerveld
Works like a charm. Your help is much appreciated!  I did tried to add a 
sxml:Document during the inference phase but somehow didn't had an affect. 
Since it did worked manually i didn't thought of it anymore. 

I still have a minor issue with the order of the output but could solve 
this with a xslt transformation in-between. Just for my understanding the 
sxml:order should tell the RDF-to-XML step to order the elements according 
to this property, right?

Thanks,

Colin

On Friday, February 28, 2020 at 12:07:04 AM UTC+1, Holger Knublauch wrote:
>
> 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
>
> converter:TheDocument
>   rdf:type sxml:Document ;
>   sxml:root converter:model .
>
> and made that the value in the SM module. It now seems to work as expected.
>
> As a further minor change I changed the sml:xml as shown below to be a 
> SPARQL variable expression, which avoids string substitution of the {?...} 
> syntax. I believe that should work better.
>
> HTH
> Holger
>
>
> On 28/02/2020 01:50, Colin Meerveld wrote:
>
> 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 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 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
>>
>> Thanks,
>>
>> Colin
>>
>>
>> On Thursday, February 27, 2020 at 10:28:59 AM UTC+1, Holger Knublauch 
>> wrote: 
>>>
>>> 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 locally? Feel 
>>> free to send them to me off-list, if there is private data.
>>>
>>> Holger
>>>
>>>
>>> On 27/02/2020 18:27, Colin Meerveld wrote:
>>>
>>> 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 ;
>>>   sml:replace true ;
>>>   sml:singlePass true ;
>>>   rdfs:label "Apply Inferencing" ;
>>> .
>>> export:ConvertRDFToXML
>>>   a sml:ConvertRDFToXML ;
>>>   sm:outputVariable "archimatexml" ;
>>>   sml:document converter:model ;
>>>   rdfs:label "Convert RDF To XML" ;
>>> .
>>>
>>> The expected behavior is that the outputVariable archimatexml has some 
>>> xml structure but it is always empty. The way it does work is by save the 
>>> output of export:ApplyTopSPIN to a rdf file. Than i manually select the 
>>> generated file and choose export > XML from RDF in Composer. Do i miss 
>>> something?
>>>
>>> Cheers,
>>>
>>> Colin
>>> -- 
>>> 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 topbrai...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/topbraid-users/8af614c5-7d4a-4475-8ebc-a0e0dab7c802%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>> -- 
>> 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 topbrai...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/cba0b9d7-f761-44df-8c43-3b1104febc5f%40googlegroups.com
>>  
>> 
>> .
>>
>> -- 
> 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 

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


converter:TheDocument
  rdf:type sxml:Document ;
  sxml:root converter:model .

and made that the value in the SM module. It now seems to work as expected.

As a further minor change I changed the sml:xml as shown below to be a 
SPARQL variable expression, which avoids string substitution of the 
{?...} syntax. I believe that should work better.


HTH
Holger


On 28/02/2020 01:50, Colin Meerveld wrote:
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 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 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


Thanks,

Colin


On Thursday, February 27, 2020 at 10:28:59 AM UTC+1, Holger
Knublauch wrote:

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 locally? Feel free to send them to me off-list,
if there is private data.

Holger


On 27/02/2020 18:27, Colin Meerveld wrote:

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 ;
  sml:replace true ;
  sml:singlePass true ;
  rdfs:label "Apply Inferencing" ;
.
export:ConvertRDFToXML
  a sml:ConvertRDFToXML ;
  sm:outputVariable "archimatexml" ;
  sml:document converter:model ;
  rdfs:label "Convert RDF To XML" ;
.

The expected behavior is that the outputVariable
archimatexml has some xml structure but it is always empty.
The way it does work is by save the output of
export:ApplyTopSPIN to a rdf file. Than i manually select
the generated file and choose export > XML from RDF in
Composer. Do i miss something?

Cheers,

Colin
-- 
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 topbrai...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/topbraid-users/8af614c5-7d4a-4475-8ebc-a0e0dab7c802%40googlegroups.com

.


-- 
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 topbrai...@googlegroups.com .
To view this discussion on the web visit

https://groups.google.com/d/msgid/topbraid-users/cba0b9d7-f761-44df-8c43-3b1104febc5f%40googlegroups.com

.


--
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 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/6e289e52-288a-4311-ae12-0992c5f9ff41%40googlegroups.com 
.


--
You received this message because you are subscribed to 

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 at the data in your pipeline after each 
step. It also helps to start with a very simple, basic transformation script 
before doing something more complex.

You mentioned saving to a file and then in the next step loading it again? This 
may be an issue - the file may not be refreshed. I am not sure why you would 
need this intermediate step.

> On Feb 27, 2020, at 10:50 AM, Colin Meerveld  wrote:
> 
> 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 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 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
>>> Thanks,
>>> 
>>> Colin
>>> 
>>> 
 On Thursday, February 27, 2020 at 10:28:59 AM UTC+1, Holger Knublauch 
 wrote:
 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 locally? Feel 
 free to send them to me off-list, if there is private data.
 
 Holger
 
 
 
> On 27/02/2020 18:27, Colin Meerveld wrote:
> 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 ;
>   sml:replace true ;
>   sml:singlePass true ;
>   rdfs:label "Apply Inferencing" ;
> .
> export:ConvertRDFToXML
>   a sml:ConvertRDFToXML ;
>   sm:outputVariable "archimatexml" ;
>   sml:document converter:model ;
>   rdfs:label "Convert RDF To XML" ;
> .
> 
> The expected behavior is that the outputVariable archimatexml has some 
> xml structure but it is always empty. The way it does work is by save the 
> output of   export:ApplyTopSPIN to a rdf file. Than i manually 
> select the generated file and choose export > XML from RDF in Composer. 
> Do i miss something?
> 
> Cheers,
> 
> Colin
> -- 
> 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 topbrai...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/8af614c5-7d4a-4475-8ebc-a0e0dab7c802%40googlegroups.com.
>>> 
>>> -- 
>>> 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 topbrai...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/topbraid-users/cba0b9d7-f761-44df-8c43-3b1104febc5f%40googlegroups.com.
> 
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/6e289e52-288a-4311-ae12-0992c5f9ff41%40googlegroups.com.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/ED53E596-3579-4D77-8E50-FCF0772EC10D%40topquadrant.com.


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 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 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
>
> Thanks,
>
> Colin
>
>
> On Thursday, February 27, 2020 at 10:28:59 AM UTC+1, Holger Knublauch 
> wrote:
>>
>> 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 locally? Feel 
>> free to send them to me off-list, if there is private data.
>>
>> Holger
>>
>>
>> On 27/02/2020 18:27, Colin Meerveld wrote:
>>
>> 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 ;
>>   sml:replace true ;
>>   sml:singlePass true ;
>>   rdfs:label "Apply Inferencing" ;
>> .
>> export:ConvertRDFToXML
>>   a sml:ConvertRDFToXML ;
>>   sm:outputVariable "archimatexml" ;
>>   sml:document converter:model ;
>>   rdfs:label "Convert RDF To XML" ;
>> .
>>
>> The expected behavior is that the outputVariable archimatexml has some 
>> xml structure but it is always empty. The way it does work is by save the 
>> output of export:ApplyTopSPIN to a rdf file. Than i manually select the 
>> generated file and choose export > XML from RDF in Composer. Do i miss 
>> something?
>>
>> Cheers,
>>
>> Colin
>> -- 
>> 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 topbrai...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/topbraid-users/8af614c5-7d4a-4475-8ebc-a0e0dab7c802%40googlegroups.com
>>  
>> 
>> .
>>
>> -- 
> 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 topbrai...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/cba0b9d7-f761-44df-8c43-3b1104febc5f%40googlegroups.com
>  
> 
> .
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/6e289e52-288a-4311-ae12-0992c5f9ff41%40googlegroups.com.


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 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
> 
> Thanks,
> 
> Colin
> 
> 
>> On Thursday, February 27, 2020 at 10:28:59 AM UTC+1, Holger Knublauch wrote:
>> 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 locally? Feel 
>> free to send them to me off-list, if there is private data.
>> 
>> Holger
>> 
>> 
>> 
>>> On 27/02/2020 18:27, Colin Meerveld wrote:
>>> 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 ;
>>>   sml:replace true ;
>>>   sml:singlePass true ;
>>>   rdfs:label "Apply Inferencing" ;
>>> .
>>> export:ConvertRDFToXML
>>>   a sml:ConvertRDFToXML ;
>>>   sm:outputVariable "archimatexml" ;
>>>   sml:document converter:model ;
>>>   rdfs:label "Convert RDF To XML" ;
>>> .
>>> 
>>> The expected behavior is that the outputVariable archimatexml has some xml 
>>> structure but it is always empty. The way it does work is by save the 
>>> output of export:ApplyTopSPIN to a rdf file. Than i manually select the 
>>> generated file and choose export > XML from RDF in Composer. Do i miss 
>>> something?
>>> 
>>> Cheers,
>>> 
>>> Colin
>>> -- 
>>> 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 topbrai...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/topbraid-users/8af614c5-7d4a-4475-8ebc-a0e0dab7c802%40googlegroups.com.
> 
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/cba0b9d7-f761-44df-8c43-3b1104febc5f%40googlegroups.com.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/A75B32FC-46C6-48B8-AA93-5DE9CBB553D1%40topquadrant.com.


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

Thanks,

Colin


On Thursday, February 27, 2020 at 10:28:59 AM UTC+1, Holger Knublauch wrote:
>
> 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 locally? Feel 
> free to send them to me off-list, if there is private data.
>
> Holger
>
>
> On 27/02/2020 18:27, Colin Meerveld wrote:
>
> 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 ;
>   sml:replace true ;
>   sml:singlePass true ;
>   rdfs:label "Apply Inferencing" ;
> .
> export:ConvertRDFToXML
>   a sml:ConvertRDFToXML ;
>   sm:outputVariable "archimatexml" ;
>   sml:document converter:model ;
>   rdfs:label "Convert RDF To XML" ;
> .
>
> The expected behavior is that the outputVariable archimatexml has some xml 
> structure but it is always empty. The way it does work is by save the 
> output of export:ApplyTopSPIN to a rdf file. Than i manually select the 
> generated file and choose export > XML from RDF in Composer. Do i miss 
> something?
>
> Cheers,
>
> Colin
> -- 
> 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 topbrai...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/8af614c5-7d4a-4475-8ebc-a0e0dab7c802%40googlegroups.com
>  
> 
> .
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/cba0b9d7-f761-44df-8c43-3b1104febc5f%40googlegroups.com.


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 locally? 
Feel free to send them to me off-list, if there is private data.


Holger


On 27/02/2020 18:27, Colin Meerveld wrote:

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 ;
  sml:replace true ;
  sml:singlePass true ;
  rdfs:label "Apply Inferencing" ;
.
export:ConvertRDFToXML
  a sml:ConvertRDFToXML ;
  sm:outputVariable "archimatexml" ;
  sml:document converter:model ;
  rdfs:label "Convert RDF To XML" ;
.

The expected behavior is that the outputVariable archimatexml has some 
xml structure but it is always empty. The way it does work is by save 
the output of export:ApplyTopSPIN to a rdf file. Than i manually 
select the generated file and choose export > XML from RDF in 
Composer. Do i miss something?


Cheers,

Colin
--
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 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/8af614c5-7d4a-4475-8ebc-a0e0dab7c802%40googlegroups.com 
.


--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/b3d4dbe2-4ce6-9f67-cdc1-86fae5fba93b%40topquadrant.com.