Re: [topbraid-users] All rules that determine whether something will have a function factory - where?

2019-07-18 Thread Jack Hodges
This happens before and after a refresh of system registries (always my 
first check). This is with TBCME version 6.2.2. I would actually like to 
see the problem with any SPIN function or template flagged in the 
interface. Right now I don't find out until I try to execute it in a SPARQL 
tab from a vocabulary. I do not want to send these kinds of requests to the 
forum if there is documentation somewhere that I can print and tape onto my 
monitor that I can look at when I see this warning. Thank you.

On Wednesday, July 17, 2019 at 3:24:10 PM UTC-7, Holger Knublauch wrote:
>
> Does this also happen after you do a refresh of the system registries 
> (System menu in TBC)? And are we talking about TBC or EDG?
>
> Holger
>
>
> On 18/07/2019 06:13, Jack Hodges wrote:
>
> I continue to develop logic in spin functions and templates and sometimes 
> I get a function factory and sometimes I don't. Is there document that says 
> for a function or a template what rules must be satisfied to avoid the "X 
> has no function factory" error? I am naming the files properly (e.g., 
> foo.spin.ttl or foo.sms.ttl), but there appear to be other requirements. If 
> there is no such document, does anyone have notes? Thankyou! 
>
> Jack
> -- 
> 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/19451735-f65c-4b08-b1e8-6c5875e9aee4%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/19451735-f65c-4b08-b1e8-6c5875e9aee4%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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/37ecd910-22aa-420f-86b4-927d031e8d7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] .project file disappeared, can I copy and edit one and still have the project work?

2019-07-23 Thread Jack Hodges
I found out why this happened. If you have a SPARQL MOTION script 
InsertOverSelect and you add a connection from its sm:body to anything, 
then whatever you point it to is part of the sm:body. In my case, 
everything was downstream of that task, including the return, so TBC no 
longer saw the script.

On Monday, June 17, 2019 at 4:53:52 PM UTC-7, Holger Knublauch wrote:
>
> Hi Jack,
>
> I am not aware of situations where the .project file would automagically 
> disappear. You can "restore" them using
>
> File > Import > General > Projects from Folder or Archive
> or yes, create a new project and copy/move the files over.
>
> Holger
>
>
> On 18/06/2019 7:13 am, Jack Hodges wrote:
>
> I am not sure what happened. I am running an older version of TBCME at 
> home and brought my workspace to work (newer version) and 2 projects won't 
> open because they have no .project files (I am wondering how that 
> happened). I checked permissions on other projects that are open, copied 
> and edited their .project files, and tried to open the projects but it 
> didn't work. Then I tried refreshing the system and also relaunching 
> Composer and still it didn't work (couldn't open the projects). 
>
> I suppose that I can create a new project and copy the files over but I'd 
> like to know why this is happening.
>
> Jack
> -- 
> 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/66e8bce2-f7bc-4ac0-b311-d7c42bb9fef3%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/66e8bce2-f7bc-4ac0-b311-d7c42bb9fef3%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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/09529a1d-6059-4c0e-9166-540f66cdd3d2%40googlegroups.com.


[topbraid-users] SPARQLMotion IterateOnSelect examples

2019-07-23 Thread Jack Hodges
I have a question. Does anyone have an example of an IterateOverSelect that 
has a body that performs an insert on the results of the IterateOverSelect 
variables?

My Intent: execute a IterateOnSelect SELECT that produces multiple rows of 
several bindings, use body of IterateOnSelect to INSERT each row

sml:selectQuery:

SELECT ?a ?b ?c
WHERE {
something related to input argument .
}

sm:body:

INSERT {
qname, label, and properties of qname
}
WHERE {
   something using ?a, ?b, and ?c
   create unique qname and labels
}


sm:next:

Do something with the items that were inserted by the sm:body

But the IterateOverSelect never seems to get executed (at least, I cannot 
see it binding ?a, ?b, or ?c and no insertions are performed.

The SPARQL MOTION library reference has no examples.

Thank you...

Jack

-- 
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/87db2c97-5c2a-4b2e-8723-8e543e0ad221%40googlegroups.com.


Re: [topbraid-users] .project file disappeared, can I copy and edit one and still have the project work?

2019-07-24 Thread Jack Hodges
I replied to the wrong question. I should have replied to the question 
about TBC not finding an SM script anymore. Sorry.

On Tuesday, July 23, 2019 at 3:44:21 PM UTC-7, Holger Knublauch wrote:
>
> Hi Jack,
>
> I am not seeing a possible connection between .project files and executing 
> SPARQLMotion scripts, but whatever the relation was I am glad you seem to 
> have been able to proceed.
>
> Holger
>
>
> On 24/07/2019 05:42, Jack Hodges wrote:
>
> I found out why this happened. If you have a SPARQL MOTION script 
> InsertOverSelect and you add a connection from its sm:body to anything, 
> then whatever you point it to is part of the sm:body. In my case, 
> everything was downstream of that task, including the return, so TBC no 
> longer saw the script.
>
> On Monday, June 17, 2019 at 4:53:52 PM UTC-7, Holger Knublauch wrote: 
>>
>> Hi Jack,
>>
>> I am not aware of situations where the .project file would automagically 
>> disappear. You can "restore" them using
>>
>> File > Import > General > Projects from Folder or Archive
>> or yes, create a new project and copy/move the files over.
>>
>> Holger
>>
>>
>> On 18/06/2019 7:13 am, Jack Hodges wrote:
>>
>> I am not sure what happened. I am running an older version of TBCME at 
>> home and brought my workspace to work (newer version) and 2 projects won't 
>> open because they have no .project files (I am wondering how that 
>> happened). I checked permissions on other projects that are open, copied 
>> and edited their .project files, and tried to open the projects but it 
>> didn't work. Then I tried refreshing the system and also relaunching 
>> Composer and still it didn't work (couldn't open the projects). 
>>
>> I suppose that I can create a new project and copy the files over but I'd 
>> like to know why this is happening.
>>
>> Jack
>> -- 
>> 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/66e8bce2-f7bc-4ac0-b311-d7c42bb9fef3%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/topbraid-users/66e8bce2-f7bc-4ac0-b311-d7c42bb9fef3%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>> -- 
> 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/09529a1d-6059-4c0e-9166-540f66cdd3d2%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/09529a1d-6059-4c0e-9166-540f66cdd3d2%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>

-- 
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/656415a0-03a2-4460-8c23-9af67df3414c%40googlegroups.com.


Re: [topbraid-users] SPARQLMotion IterateOnSelect examples

2019-07-24 Thread Jack Hodges
I was debugging this problem with Steve and we found that the 
IterateOverSelect is not executing because it has two magic property calls 
referenced and they are not being resolved. Their graphs 'are' being 
imported, and everything in them can be seen in the 'query' tab in SPARQL 
MOTION and, even though I use their prefixes in the select statement, in 
the SM query tab they have been converted to their full namespaces. 
Interestingly, they do not resolve from their namespaces in that query tab, 
but if I retype their prefixes they do resolve and execute in that tab just 
fine. So I am confused about this and hope that you know what is going on 
and I might then move forward...I should add that all of the graphs that 
are needed are imported into the SM script and resolve in the imported 
graphs tab in SM.

Jack

On Tuesday, July 23, 2019 at 3:42:18 PM UTC-7, Holger Knublauch wrote:
>
> I am attaching a script that looks as in the screenshot:
>
> You need to make sure that the PerformUpdate specifies the target graphs, 
> using the GRAPH keyword. Otherwise it doesn't know where the triples shall 
> go.
>
> The Merge step is just there as a dummy placeholder for some module that 
> handles the result graph.
>
> Depending on your setup, SWP might be a better choice for such 
> SPARQL-based transformation scripts.
>
> HTH
> Holger
>
>
> On 24/07/2019 05:40, Jack Hodges wrote:
>
> I have a question. Does anyone have an example of an IterateOverSelect 
> that has a body that performs an insert on the results of the 
> IterateOverSelect variables? 
>
> My Intent: execute a IterateOnSelect SELECT that produces multiple rows of 
> several bindings, use body of IterateOnSelect to INSERT each row 
>
> sml:selectQuery:
>
> SELECT ?a ?b ?c
> WHERE {
> something related to input argument .
> }
>
> sm:body:
>
> INSERT {
> qname, label, and properties of qname
> }
> WHERE {
>something using ?a, ?b, and ?c
>create unique qname and labels
> }
>
>
> sm:next:
>
> Do something with the items that were inserted by the sm:body
>
> But the IterateOverSelect never seems to get executed (at least, I cannot 
> see it binding ?a, ?b, or ?c and no insertions are performed.
>
> The SPARQL MOTION library reference has no examples.
>
> Thank you...
>
> Jack
> -- 
> 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/87db2c97-5c2a-4b2e-8723-8e543e0ad221%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/87db2c97-5c2a-4b2e-8723-8e543e0ad221%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>

-- 
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/b677db84-80cb-467f-86a5-2d53093a588d%40googlegroups.com.


[topbraid-users] Re: Error: No SPARQLMotion scripts found in this model

2019-07-22 Thread Jack Hodges
I know that this is an ancient thread but I didn't want to create a new one 
if I could find an old reference. I just transferred a project from home to 
work (only the project) and I imported it into a clean workspace and then 
tried to open my one SM script to do some work on it. It was fine at home 
last night but this morning I am told what Phil saw and that there are no 
SM scripts in this model. Very strange. Of course, the first thing I did 
was to refresh system registries, and the second thing I did was to restart 
TBCME. The third thing I did was to create a new script from scratch. And 
TBCME doesn't see any of them as a script.

So maybe this is a bug in v6.2.2? I may try to revert to an earlier version 
to test this hypothesis, but it was working on v6.2.2 at home, both on OSX 
though the one at home is HighSierra and this one is Mojave.

Jack

On Thursday, September 3, 2009 at 8:23:52 AM UTC-7, Scott Henninger wrote:
>
> Phil; That's pretty much what's needed.  Are there any specific errors 
> in the Error Log? 
>
> If you can see the instances, you can open one of those instances in 
> the form and open the Graph View.  That will display the SPARQLMotion 
> script the instance occurs in. 
>
> -- Scott 
>
> On Sep 3, 9:58 am, Phil  wrote: 
> > Hi, Scott. 
> > 
> > I've checked the .sms.owl file and it has all of the sparql motion 
> > libraries imported into it (at least, I assume it's all of them - I 
> > guess I dont' know exactly which ones it needs, but there are several 
> > listed under the imports window of this file).  I've also verified via 
> > the navigator that the libraries exist. 
> > 
> > Any other thoughts? 
> > 
> > Phil 
> > 
> > On Sep 3, 10:31 am, Scott Henninger  
> > wrote: 
> > 
> > > Phil;  Perhaps your sparqlmotion imports were removed or the libraries 
> > > were removed?  Make sure that sparqlmotionlib and 
> > > sparqlmotionfunctions are imported in your script file.  If not, then 
> > > either import them manually or use Scripts > Create SPARQLMotion 
> > > Script, which will ask to import the files if they are not already 
> > > present. 
> > 
> > > The sparqlmotion file to import are in the TopBraid library in the TBC 
> > > folder.  If the project is closed, the library will be unavailable, 
> > > which seems a likely cause of the problem.  If the files have been 
> > > removed, then use Import > RDF/OWL Library from the Web to get them 
> > > back into your workspace (this must be done for each workspace you 
> > > use). 
> > 
> > > -- Scott 
> > 
> > > On Sep 3, 9:14 am, Phil  wrote: 
> > 
> > > > I am getting an error indicating that TopBraid cannot find a 
> > > > sparqlmotion script in a model.  What causes this error to occur?  I 
> > > > have a .owl file that contains sparqlmotion scripts to process XML 
> > > > files into RDF that I ultimately store in an oracle database.  I 
> > > > started off creating a .owl file that contains these scripts and 
> > > > everything works fine.  I then copied the .owl file to a ".sms.owl" 
> > > > file so that I could create a web service interface for invoking the 
> > > > load.  I had this up and running several weeks ago and haven't 
> touched 
> > > > the file since (at least, I don't remember doing so). 
> > 
> > > > Anyway, is there a way for me to manually add something to the file 
> > > > that would make TopBraid recognize the modules as sparqlmotion?  I 
> can 
> > > > open the file with TopBraid and I can see my modules as instances of 
> > > > the various "sm:Modules" classes.  But it won't let me edit them 
> using 
> > > > the "Edit SparqlMotion script" option. 
> > 
> > > > Any assistance would be greatly appreciated. 
> > 
> > > > Phil- Hide quoted text - 
> > 
> > > - Show quoted text -

-- 
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/126f0882-dbcd-4de4-be1d-e835fefabaf8%40googlegroups.com.


[topbraid-users] Re: Uniqueness constraint across multiple concepts

2020-01-24 Thread Jack Hodges
Did you try writing a SPARQL constraint?

On Thursday, January 23, 2020 at 4:59:52 PM UTC-8, cbur...@healthwise.org 
wrote:
>
> What if I wanted to create a constraint (in SHACL, perhaps) specifying 
> that two concepts may not share the same object for a particular property? 
> I would want a warning to be raised when a user attempts to save a concept 
> containing the triple
>
> ex:ConceptX ex:property ex:ConceptY
>
>
> if somewhere else in the vocabulary there already exists the triple
>
> ex:ConceptZ ex:property ex:ConceptY 
>
>
> It occurs to me that such a rule is already enforced for the 
> skos:prefLabel property in EDG, but I don't know how this is being done 
> "under the hood." Can anyone advise how to create a similar constraint? 
> Thanks.
>

-- 
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/fa5ded0e-9feb-41db-b132-fd89c105d172%40googlegroups.com.


[topbraid-users] Size limit of Semantic XML in TBCME

2021-01-12 Thread Jack Hodges
I was looking in the archives to see if there is a limit to the size of 
files using Semantic XML and found only 1 thread from way back (2009). I 
have to import large datasets into a knowledge graph (offline for now) and, 
like the original poster, I have no problem with very small files but even 
moderately-sized files are producing errors. I am using TBCME version 6.3 
on a MacBook running macOS Catalina, 10.15.7 with 32 GB of memory. I have 
allocated (in the Contents/Eclipse/TopBraid Composer.ini file) to 12 GB of 
memory with no improvement.

-- 
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/bc7059ce-2423-4823-9fe2-887cd4241c27n%40googlegroups.com.


Re: [topbraid-users] Reading and mapping JSON files

2021-06-10 Thread Jack Hodges
I am doing the same thing and want to convert a SPIN Map mapping that I am 
using with XML and have been asked to use JSON instead.

TBCME has a ConvertXMLToRDF SPARQL Motion module that takes plain (but 
valid) XML and produces a default RDF graph. I then use a SPIN Map to map 
from that generic RDF to my target schema. This works great.

I expected the ConvertJSONToRDF module to work the same way; that TBCME 
would read the JSON, convert it to a generic RDF that would look the same 
as the previous one (since I converted the XML to JSON to test everything). 
All I expected to have to do was to swap the ConvertXMLToRDF module with 
the ConvertJSONToRDF module. If I stop the execution after this module 
there are a number of instances of the http://topbraid.org/json namespace 
(which doesn't appear to exist) but the next conversion doesn't work.

I do not want to use GraphQL or SHACL or SWP to do this, just SPARQL 
Motion, SPIN Map, and the published modules. Please advise.

Jack

On Tuesday, August 20, 2019 at 1:23:43 PM UTC-7 Irene Polikoff wrote:

> Hi Daniel,
>
> The key piece is to have SHACL Shapes that correspond to the structure of 
> your JSON. They are used to guide the conversion.
>
> If you already have a GraphQL schema for your JSON, TopBraid EDG can 
> create SHACL Shapes from it. 
>
> For example, in TBC, you could use Import:
>
>
> Technical details behind how this works are here: 
> https://www.topquadrant.com/graphql/graphql-shacl.html
>
>
> sml:ConvertJSONToRDF described below by Holger, has the following 
> arguments:
>
>
>- sml:keepRootObject (xsd:boolean): [Optional] In GraphQL mode 
>(sml:service is provided) then the root object is typically just a 
>container derived from the Query. By default, the triples of this root 
>object will not be kept. Set to true to keep these triples in the result 
>graph.
>- sm:outputVariable (xsd:string): [Optional] The name of the result 
>variable (defaults to "root") that will contain the root object of the 
>converted JSON code.
>- sml:service (graphql:Schema): [Optional] A GraphQL service object 
>providing information on how to map the JSON to RDF using SHACL shapes.
>- sml:text (xsd:string): The JSON input text, either a JSON object or 
>array.
>
>
> If you do not have a GraphQL Schema for your JSON, then you could start by 
> creating a SHACL model that correspond to your JSON. Internally, TopBraid 
> will automatically generate a GraphQL Schema from SHACL that will be used 
> to guide the import and transformation of JSON.
>
> Technical details of how GraphQL Schemas are generated from SHACL are here 
> https://www.topquadrant.com/graphql/shacl-graphql.html. Yes, this is used 
> to query RDF with GraphQL and get JSON out. But it is also used in the 
> other direction, to convert JSON to RDF.
>
> Also see answers below
>
> On Aug 20, 2019, at 1:46 PM, Daniel Lavoie  wrote:
>
> And:
>
>- Can we use TBC Maestro for the development?
>
> Yes. You can develop the import process using the suggested module/API. 
> You can test the script in TBC. However, TBC is a single user, not 
> networked tool. For doing the scheduled processing (assuming this is not a 
> one-of and your JSON comes in on a regular basis), you will need a server.
>
>
>- Can we implement the result in a triple store? 
>
> Yes, sure
>
>
>- Does it have to be EDG triple store or can we use another one like 
>Stardog?
>
>
> The transformation will create RDF from JSON, you can decide what to do 
> with it e.g., write it into EDG’s triple store, export it as file into one 
> of the serialized formats, etc. 
>
> Thanks again!
> Daniel
>
> On Tuesday, August 20, 2019 at 10:49:15 AM UTC-4, Daniel Lavoie wrote:
>>
>> Thank you very much Holger for your answer. I have listened to the 
>> webminar you have suggested, but most of it is about producing JSON from 
>> RDF. However, I want to do the opposite.  I am very interested of learning 
>> more about the JSON to RDF conversion using SHACL.  In fact, I would want 
>> to:
>>
>>- Generate the IRIs as we want (its seems that is possible using 
>>GRAPH QL templates)
>>- Map the JSON field names to Property IRIs.
>>- Validate the JSON fields and values.
>>
>> Where can I find more information about the JSON to RDF conversion using 
>> GraphQL and SHACL?
>>
>> Regards
>> Daniel
>> On Monday, August 19, 2019 at 8:15:16 PM UTC-4, Holger Knublauch wrote:
>>>
>>> Hi Daniel,
>>>
>>> there is a variety of options here.
>>>
>>> Obviously, if the file is JSON-LD then it can be opened like any other 
>>> RDF graph, assuming it ends with .jsonld. JSON-LD has been designed with a 
>>> notion of Contexts that provide some flexibility as an on-the-fly transform 
>>> from many JSON tree structures into JSON-based graph structure.
>>>
>>> If the file is not JSON-LD and you cannot define a suitable JSON-LD 
>>> context then you could use our generic JSON importer that can transform 

[topbraid-users] XML fromn RDF wizard in TBCME (tutorial anywhere?)

2021-05-18 Thread Jack Hodges
I have created an OWL/RDFS model and populated it with some data 
(manually). I want to export this data to XML so that I can test an ingest 
SPARQL MOTION script. There is a TBCME export wizard called XML from RDF 
which asks for an output file and an instance, and it tries to work but 
produces empty files. Clearly I am not using it properly. Is there one of 
Holger's videos that shows how to make this work, or a tutorial? I've been 
wandering the site and the forum looking and I don't really want to write a 
SPARQL MOTION script to do it if there is already an export utility that 
does it. Thanks for pointers.

Jack

-- 
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/9a2b523e-a8f3-4eb5-ac81-91404b1997c3n%40googlegroups.com.


Re: [topbraid-users] TBCME 6.4 crashes in SPINMap Diagram

2021-05-21 Thread Jack Hodges
I found an error log in the TBCME package under 
Contents/MacOS/hs_err_pid48983 if that is what you are referring to. 
Attached. This is only happening with regularity in the SPIN Map diagram 
editor and usually when I try to save a snapshot. So I started editing in 
raw.

Can I run a python script in SPARQL MOTION? If so maybe I can use rdflib to 
convert the data.

On Wednesday, May 19, 2021 at 2:42:39 PM UTC-7 Holger Knublauch wrote:

>
> On 2021-05-20 7:30 am, Jack Hodges wrote:
>
> I have been having stability issues with TBCME 6.4 where it crashes 
> several times a day, but I began a SPINMap project yesterday and it is 
> hanging every 15-30 seconds, requiring me blast the process. I would use 
> TBCME 7.0 but I have been having issues with even starting that one so I am 
> reluctant to move operations over to it. Is this stability problem fixed in 
> 7.0?
>
> I doubt it, because nothing related to SPINMap has been touched for a 
> while, and TBC 7.0 is not much different from 6.4 feature-wise. It would 
> help us better understand the crashes if you could send the Eclipse error 
> log with Exception stack traces. I don't know what to do with the other 
> file you have sent.
>
> Holger
>
>
> It would be worth the switch if I can do something that should take 
> minutes in less than a day. Sorry to be whiner. 
>
> Jack
>
> Macbook Pro 2018
> 2.6 GHz 6-core Intel Core i7
> 32 GB 2400 MHz DDR4 memory
> macOS Big Sur, version 11.3.1
>
> -- 
> 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-user...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/c49d356e-e5b2-4313-b9e2-0fb33d65976dn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/c49d356e-e5b2-4313-b9e2-0fb33d65976dn%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>

-- 
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/b4828643-0a2b-410d-8731-b8ff17ec7910n%40googlegroups.com.
{\rtf1\ansi\ansicpg1252\cocoartf2580
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fmodern\fcharset0 Courier;}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
{\*\expandedcolortbl;;\cssrgb\c0\c0\c0;}
\margl1440\margr1440\vieww11520\viewh8400\viewkind0
\deftab720
\pard\pardeftab720\partightenfactor0

\f0\fs24 \cf2 \expnd0\expndtw0\kerning0
\outl0\strokewidth0 \strokec2 #\
# A fatal error has been detected by the Java Runtime Environment:\
#\
#  SIGSEGV (0xb) at pc=0x7fff2037f81d, pid=48983, tid=0x0103\
#\
# JRE version: OpenJDK Runtime Environment (8.0_222-b10) (build 1.8.0_222-b10)\
# Java VM: OpenJDK 64-Bit Server VM (25.222-b10 mixed mode bsd-amd64 compressed oops)\
# Problematic frame:\
# C  [libobjc.A.dylib+0x681d]  objc_msgSend+0x1d\
#\
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again\
#\
# If you would like to submit a bug report, please visit:\
#   http://bugreport.java.com/bugreport/crash.jsp\
# The crash happened outside the Java Virtual Machine in native code.\
# See problematic frame for where to report the bug.\
#\
\
---  T H R E A D  ---\
\
Current thread (0x00010182d000):  JavaThread "main" [_thread_in_native, id=259, stack(0x7ffeef40,0x7ffeefc0)]\
\
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x1aeb5d20\
\
Registers:\
RAX=0x0001aeb487d0, RBX=0x7ffeefbfb708, RCX=0x62604060, RDX=0x60f11350\
RSP=0x7ffeefbfb6b8, RBP=0x7ffeefbfb6c0, RSI=0x7fff7ba6911d, RDI=0x0001aeb487d0\
R8 =0x0001aeb487d0, R9 =0x, R10=0x1aeb5d08, R11=0x7fff7ba6911d\
R12=0x1000, R13=0x60f11350, R14=0x60ede6a0, R15=0x\
RIP=0x7fff2037f81d, EFLAGS=0x00010202, ERR=0x0004\
  TRAPNO=0x000e\
\
Top of Stack: (sp=0x7ffeefbfb6b8)\
0x7ffeefbfb6b8:   7fff205d021d 7ffeefbfb6e0\
0x7ffeefbfb6c8:   7fff2066bc7c 0001aeb487d0\
0x7ffeefbfb6d8:   7ffeefbfb7b8 7ffeefbfb790\
0x7ffeefbfb6e8:   7fff2066bbfa 62604060\
0x7ffeefbfb6f8:   0001aeb487d0 000b\
0x7ffeefbfb708:   7fff807d8340 c200\
0x7ffeefbfb718:   7fff2066bc4b 7fff8098c698\
0x7ffeefbfb728:   60ede6a0 60f11350\

Re: [topbraid-users] XML fromn RDF wizard in TBCME (tutorial anywhere?)

2021-05-19 Thread Jack Hodges
I'll take a look, thanks. In the meantime I went to another approach 
(convoluted but it worked), where I took a sample XML, backed out an XSD, 
imported the XSD into TBC, created the OWL file, and proceeded on to the 
real task of building a SPINMap to my ontology (another problem reported 
elsewhere). But I will look over this solution as it would have been the 
preferred approach. Thanks.

Jack

On Tuesday, May 18, 2021 at 3:49:48 PM UTC-7 Holger Knublauch wrote:

> Hi Jack,
>
> there are many ways of mapping RDF to XML. What output would you like to 
> produce? Do you mean RDF/XML, XML based on our Semantic XML technology or 
> some arbitrary XML?
>
> One new technique to produce arbitrary XML is Active Data Shapes (ADS), 
> see the last example in
>
> http://datashapes.org/active/tutorial.html#getting-started
>
> which produces HTML yet the same approach works for XML.
>
> Holger
>
>
> On 2021-05-19 3:04 am, Jack Hodges wrote:
>
> I have created an OWL/RDFS model and populated it with some data 
> (manually). I want to export this data to XML so that I can test an ingest 
> SPARQL MOTION script. There is a TBCME export wizard called XML from RDF 
> which asks for an output file and an instance, and it tries to work but 
> produces empty files. Clearly I am not using it properly. Is there one of 
> Holger's videos that shows how to make this work, or a tutorial? I've been 
> wandering the site and the forum looking and I don't really want to write a 
> SPARQL MOTION script to do it if there is already an export utility that 
> does it. Thanks for pointers. 
>
> Jack
>
> -- 
> 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-user...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/9a2b523e-a8f3-4eb5-ac81-91404b1997c3n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/9a2b523e-a8f3-4eb5-ac81-91404b1997c3n%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>

-- 
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/6d7e9fb9-d7fd-4d72-87b7-1a18fb2c1b6fn%40googlegroups.com.


Re: [topbraid-users] Export RDF to custom XML

2021-07-01 Thread Jack Hodges
I am doing something similar to Oleksandr and I know that this is a very 
old thread but such is life. I 'am' doing round tripping but here is my SM 
workflow:

XML source --> XML-2-RDF module --> RDF-2-RDF using SPIN Map --> Insert to 
KG --> DO Stuff with resuting KG --> RDF-2-RDF Reversal using SPIN Map --> 
RDF-2-XML module --> Export to remote.

Because (I think) the sxml tags are in the first conversion but not to my 
ontology, they are not there when I want to export the XML and the result 
is empty. I tried to watch Holger's really old movie but it no longer seems 
to exist. My next stop is the SM help page but any help would be 
appreciated.

Jack

On Thursday, March 9, 2017 at 7:08:03 AM UTC-8 icod...@gmail.com wrote:

> Hi Holger,
>
> thank you very much for help!
>
> Best regards,
> Oleksandr Mandryk
>
>
> On Thursday, March 9, 2017 at 1:11:38 AM UTC+1, Holger Knublauch wrote:
>>
>> Hi Oleksandr,
>>
>> we have discovered that the sml:RDFXML mode of sml:ReturnRDF indeed 
>> produces the same output as sml:RDFXMLAbbrev. Something must have changed 
>> in the underlying Jena writer's contract and this may have gone undetected 
>> for quite a while because most users have switched to Turtle or JSON-LD. I 
>> have just updated our code to use a different RDF/XML writer, and this fix 
>> will go into 5.3. The beta of 5.3 is planned for the end of this month, so 
>> if you urgently require a fix then I am afraid there is not much I can do 
>> right now.
>>
>> The alternative would be to produce the RDF triples using SWP - that 
>> would give you fine tuned control over the exact output but is of course 
>> also quite a bit of work to get right. I have attached an example that 
>> produces
>>
>> http://www.w3.org/1999/02/22-rdf-syntax-ns#; 
>> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#;>
>> http://aldi.de;>
>> Test
>> 
>> 
>>
>> using SWP. Call it using 
>> http://localhost:8083/tbl/swp?_viewClass=rdfXMLInSWP:Example
>>
>> Another option would be to create the exact RDF/XML with some 3rd party 
>> tool such as a Jena command line tool.
>>
>> Apologies for the inconvenience!
>>
>> Holger
>>
>>
>> On 7/03/2017 20:48, Oleksandr Mandryk wrote:
>>
>> Hi Holger, 
>> thank you very much for your advice!
>>
>> I've created new SPARQLMotion script with such modules: spl:Argument 
>> -> sml:ApplyConstruct -> sml:ReturnRDF, where in  sml:ApplyConstruct I put 
>> this constructQuery:
>> CONSTRUCT {
>> ?a ?b ?c .
>> }
>> WHERE {
>> BIND (smf:buildURI("{?1}", ?projectGraph) AS ?graphName) .
>> GRAPH ?graphName {
>> ?a ?b ?c .
>> } .
>> }
>>
>> and sml:RDFXMLAbbrev in sml:ReturnRDF 
>>
>> but it produces the same output with sml:RDFXML.
>>
>> Also I tried to change arg:serialization 
>> in teamwork:ExportEntireProjectPlugin for ExportToRDF, but it also produces 
>> the same output as with sml:RDFXML.
>>
>> I'm working on EVN Version 5.2.0.v20160909-1520B.
>>
>> Thank you.
>>
>> Best regards,
>> Oleksandr Mandryk
>>
>> On Tuesday, March 7, 2017 at 4:49:27 AM UTC+1, Holger Knublauch wrote: 
>>>
>>> Try to use sml:serialization=sml:RDFXMLAbbrev at sml:ReturnRDF.
>>>
>>  
>>
>>>
>>> In general, the main alternatives for producing arbitrary XML are 
>>> Semantic XML (via sml:ConvertRDFToXML) or SWP. SWP can produce any XML, 
>>> assuming you turn each XML element into a subclass of ui:Element and each 
>>> XML attribute into corresponding argument properties at these elements.
>>>
>>> Holger
>>>
>>>
>>> On 7/03/2017 13:26, Oleksandr Mandryk wrote:
>>>
>>> Hi Hogler,
>>>
>>> as far as I remember the nested resources was the main issue. I haven't 
>>> tried approach that you suggested but as I can see
>>> here http://www.topquadrant.com/sparqlmotion/lib.html#sml:ReturnRDF 
>>> there is no such property in sml:ReturnRDF.
>>>
>>> Could you please explain where I can specify sml:RDFXML / 
>>> sml:RDFXMLAbbrev?
>>>
>>> BTW: Do we have any alternatives (just in case) to this approach? I mean 
>>> if I would like to build totally different XML from taxonomy RDF what would 
>>> be the most appropriate way to do it?
>>>
>>> Thank you very much!
>>>
>>> Best regards,
>>> Oleksandr Mandryk
>>>
>>>
>>> On Tuesday, March 7, 2017 at 4:07:44 AM UTC+1, Holger Knublauch wrote: 

 Whether resources are nested or remain top-level is a configuration 
 option in the RDF/XML writer. In sml:ReturnRDF, try using sml:RDFXML 
 versus 
 sml:RDFXMLAbbrev (the abbrev option will produce nested objects). Have you 
 tried this or would there be other differences from your planned output?

 Holger 

 On 7/03/2017 12:56, Oleksandr Mandryk wrote:

 Hi Hogler, 
 thank you for reply!

 Actually RDF/XML is pretty different from what I need. The biggest 
 issue with RDF/XML for me is hierarchical structure of relations between 
 nodes, 
 for example if PARENT_NODE is parent of CHILD_NODE in RDF/XML it will 
 look like this:

 
  
  ... 

<    1   2   3