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, 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. 
> Are there others?
>
> (Also, and not your "fault": the labelTemplate of dqc:MissingProperties is 
> misleading - I don't see how empty literals would be allowed by it). Note 
> that using NOT EXISTS without FILTER is no longer legal in SPARQL 1.1 - it 
> was just an ARQ syntax. It should be changed to FILTER NOT EXISTS in the 
> long term.
>
> Holger
>
>
>  
> This is the main ontology:
>
> https://github.com/Graphity/graphity-client/blob/master/src/main/resources/org/graphity/client/vocabulary/gcs.ttl
>
> It imports the DQC ontology:
>
> https://github.com/Graphity/graphity-client/blob/master/src/main/resources/org/graphity/processor/vocabulary/dq-constraints.rdf
>
> On Tuesday, March 17, 2015 at 12:45:27 AM UTC+1, Holger Knublauch wrote: 
>>
>>  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 
>> constraints:
>>
>>         OntModel tempModel = 
>> ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);
>>         tempModel.add(ontModel).add(model);
>>         SPINModuleRegistry.get().registerAll(tempModel, null);
>>         List<ConstraintViolation> cvs = SPINConstraints.check(tempModel, 
>> null);
>>
>> After upgrade from 1.3.1 to 1.4.0, this code stopped working -- meaning 
>> that no violations are returned where they were returned before.
>>
>> Any clues? I was hoping the API behaviour wouldn't change.
>>
>> Martynas
>>  -- 
>> You received this message because you are subscribed to the Google Group 
>> "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
>> Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid 
>> Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
>> To post to this group, send email to topbrai...@googlegroups.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-user...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>   -- 
> You received this message because you are subscribed to the Google Group 
> "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
> Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid 
> Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
> To post to this group, send email to topbrai...@googlegroups.com 
> <javascript:>
> --- 
> 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 <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>  

-- 
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, 
TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to topbraid-users@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to