Hi all,

I'm trying to use SPIN (which I'm quite impressed by, love to reuse my 
SPARQL knowledge); I've had some success but run into a situation in which 
the rule runs for a long time then results in Java out of heap space. 

The SPARQL query that I'm using executes quickly directly, but not when run 
via SPIN.  I'm trying to understand why.

The code and data are on github:

https://github.com/jameshowison/softcite/tree/spin-issue

The relevant code running the rules is:
https://github.com/jameshowison/softcite/blob/spin-issue/code/src/main/java/edu/utexas/ischool/jhowison/TTLRepository.java#L257-L280

The relevant SPIN rule is:
https://github.com/jameshowison/softcite/blob/spin-issue/data/SPINrules.ttl#L56-L68

bioj:selection a rdfs:Class ;
        spin:rule [ rdf:type sp:Construct ;     
                                sp:text """
        # Moves all codes directly onto DirectSelection, even if they originated
        # on a reference.
        CONSTRUCT {
          ?this ca:isTargetOf [ ca:appliesCode ?coding ] .
        } 
        WHERE { 
          ?this bioj:has_reference ?ref .
          ?ref ca:isTargetOf [ ca:appliesCode ?coding ] .
        }"""
        ] ;


This should get things working locally for anyone kind enough to take a 
look for me, dependencies via Maven.

You'll have to edit the path variable at:

https://github.com/jameshowison/softcite/blob/spin-issue/code/src/main/java/edu/utexas/ischool/jhowison/TTLRepository.java#L37

git clone https://github.com/jameshowison/softcite.git
cd softcite/code
mvn -Dtest=AppTest#testSPINoutput test  (or mvn test)

I've tried it with spin:thisUnbound "true"^^xsd:boolean ; as well, but no 
cigar.  Is there something recursive going on here that I can control?

Thanks,
James


-- 
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, 
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to