Re: [topbraid-users] Create individuals from XML file using existing ontology

2017-11-23 Thread Irene Polikoff
The easiest approach is to import XSD for your XML files which creates OWL ontology, then XML files that correspond to it can be auto-transformed to RDF. If you don’t have XSD, there tools which will generate one for you from XML files. It may be possible to annotate the ontology you have

Re: [topbraid-users] [SPIN API] Passing arguments to constructors at runtime

2017-11-23 Thread Martynas Jusevicius
I thought spin:Template (possibly with arguments) can be used anywhere sp:Query can be used, including constructors? On Thursday, November 23, 2017 at 11:44:22 PM UTC+1, Holger Knublauch wrote: > > Hi, > > SPIN constructors don't have a facility for parameters, making their use > rather

Re: [topbraid-users] [SPIN API] Executing spin:fix

2017-11-23 Thread Simon Schlosser
Thank you so much! Works as exected! Yes, I am thinking or better said, I've already decided to switch to SHACL. But unfortunately the transition will take some time due to some specialties that we've introduced and from which I want and have to become rid of. Simon Am Donnerstag, 23.

[topbraid-users] Create individuals from XML file using existing ontology

2017-11-23 Thread Glykeria Alvanou
Hi, I have created an ontology (.ttl) manually -without using any tool- and it's based on XML representation. What I want to do is to import many XML files and create individuals which correspond to the existing ontology. How can I achieved the mapping between the XML files and the ontology

Re: [topbraid-users] [SPIN API] Executing spin:fix

2017-11-23 Thread Holger Knublauch
Hi Simon, the only code that executes those fixes in our code base is in TopBraid-specific extensions, so I cannot help out of the box. Some untested snippet:         Command command = templateCall.getTemplate().getBody();         Update spinUpdate = SPINFactory.asUpdate(command);        

Re: [topbraid-users] [SPIN API] Passing arguments to constructors at runtime

2017-11-23 Thread Holger Knublauch
Hi, SPIN constructors don't have a facility for parameters, making their use rather limited. Given that SPIN is not an official standard anyway, why not make up your own property and do what you want there? Holger On 24/11/2017 4:25, Martynas Jusevicius wrote: Hi, I am using this code to

[topbraid-users] [SPIN API] Executing spin:fix

2017-11-23 Thread Simon Schlosser
Hi all, I am struggling with creating fixes programmatically. All my search efforts did not provide me with any code snippet that would show how to apply them. My problem: I have a ConstraintViolation object and via getFixes() I get a Collection. My defined spin:fix in the construct part of the

Re: [topbraid-users] Abridged summary of topbraid-users@googlegroups.com - 8 updates in 1 topic

2017-11-23 Thread Jack Hodges
Michel, Irene and TopQuadrant are not responsible for QUDT, though they are intimately familiar with it. She is addressing your general import question into TBC. For any QUDT import issues you would need to talk to someone in QUDT.org. Granted, at present Ralph knows more about the ontologies