Re: [topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-18 Thread Martynas Jusevicius
Thanks, everything works as expected now. On Wednesday, March 18, 2015 at 2:22:15 AM UTC+1, Holger Knublauch wrote: HTH Holger On 3/18/2015 11:20, Martynas Jusevicius wrote: Are you saying all the files in etc/ are now .ttl? sp.ttl, spin.ttl, spl.spin.ttl? On Tuesday, March 17,

Re: [topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-17 Thread Martynas Jusevicius
Are you saying all the files in etc/ are now .ttl? sp.ttl, spin.ttl, spl.spin.ttl? On Tuesday, March 17, 2015 at 11:57:38 PM UTC+1, Holger Knublauch wrote: Ah that explains it. I had internally switched to a Turtle file etc/spin.ttl. I had assumed that anyone who relies on this file would

Re: [topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-17 Thread Holger Knublauch
HTH Holger On 3/18/2015 11:20, Martynas Jusevicius wrote: Are you saying all the files in etc/ are now .ttl? sp.ttl, spin.ttl, spl.spin.ttl? On Tuesday, March 17, 2015 at 11:57:38 PM UTC+1, Holger Knublauch wrote: Ah that explains it. I had internally switched to a Turtle file

Re: [topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-17 Thread Holger Knublauch
Ah that explains it. I had internally switched to a Turtle file etc/spin.ttl. I had assumed that anyone who relies on this file would use the provided function SPIN.getModel(). Thanks Holger On 3/17/2015 23:07, Martynas Jusevicius wrote: I checked the logs, and hopefully the problem is

Re: [topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-17 Thread Martynas Jusevicius
The instances are not in the ontology, they come from user input and then both are added to tempModel which is validated. I have tried to make a standalone test case, but so far unsuccessfully. On Tuesday, March 17, 2015 at 2:34:02 AM UTC+1, Holger Knublauch wrote: On 3/17/2015 10:05,

Re: [topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-17 Thread Martynas Jusevicius
I checked the logs, and hopefully the problem is simpler than I thought: com.hp.hpl.jena.shared.NotFoundException: Not found: etc/spin.rdf Were the vocabulary files removed from etc/? Is there some new location I can use for location-mapping.n3? On Tuesday, March 17, 2015 at 1:51:29 PM UTC+1,

Re: [topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-16 Thread Holger Knublauch
On 3/17/2015 10:05, Martynas Jusevicius wrote: The constrains are mostly very simple and look like this: spin:constraint [ a dqc:MissingProperties ; sp:arg1 #TemplateItem ; sp:arg2 gp:slug ] ; I am not seeing instances of #TemplateItem in the files that you mention.

Re: [topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-16 Thread Martynas Jusevicius
Yes, everything is identical except the SPIN versions in POM -- yet the behaviour is different. I just double-checked. In one instance, with 1.3.1, SPINConstraints.check() returns 2 ConstraintViolation objects while with 1.4.0 it returns 0. The constrains are mostly very simple and look like

Re: [topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-16 Thread Martynas Jusevicius
Slight correction: dqc: is imported indirectly, via gp: ontology. On Tuesday, March 17, 2015 at 1:05:05 AM UTC+1, Martynas Jusevicius wrote: Yes, everything is identical except the SPIN versions in POM -- yet the behaviour is different. I just double-checked. In one instance, with 1.3.1,

Re: [topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-16 Thread Holger Knublauch
I am not aware of such changes, but I will need more details to verify. Did you use exactly the same RDF files? How do the constraints look like? Thanks, Holger On 3/17/2015 9:44, Martynas Jusevicius wrote: Hello, I have a simple piece code that validates an RDF model against SPIN

[topbraid-users] [SPIN API] SPINConstraints.check() returns no violations after upgrade to 1.4.0

2015-03-16 Thread Martynas Jusevicius
Hello, I have a simple piece code that validates an RDF model against SPIN constraints: OntModel tempModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM); tempModel.add(ontModel).add(model); SPINModuleRegistry.get().registerAll(tempModel, null);