SPIN Hack in GraphDB











up vote
1
down vote

favorite












I have an ontology that I created in TopBraid that uses SPIN + OWL inference. I've been trying to figure out a way to decouple SPIN because most RDF graph database vendors still do not support the standard.



The approach that I've come up with using GraphDB is to load my ontology into GraphDB and then execute each spin:rule present in my ontology as a SPARQL UPDATE/INSERT.



First thing I'm trying to figure out if I can temporarily turn off the GraphDB reasoner while I make a set of SPARQL INSERTS/UPDATES and then turn on the reasoner thereafter.



Secondly, although likely not recommended, would it be possible for the SPARQL INSERT/UPDATES to be added to the implicit graph and not the explicit graph?



If someone has a better idea on how to do this do let me know.










share|improve this question






















  • They have rules: graphdb.ontotext.com/documentation/standard/reasoning.html
    – Stanislav Kralin
    Aug 11 at 15:17






  • 1




    I agree that rules are likely the best way to go, but 1) I don't believe that rules can create new IRIs which I require. 2) I want my rules to be written in some standard's based language. 3) The rules I have are fairly complex, which is why I went down the SPIN route in the first place.
    – Anuj Khanna
    Aug 11 at 18:45












  • Well, possibly you could try RDF4J: stackoverflow.com/search?q=rdf4j+spin+is%3Aq
    – Stanislav Kralin
    Aug 11 at 20:09















up vote
1
down vote

favorite












I have an ontology that I created in TopBraid that uses SPIN + OWL inference. I've been trying to figure out a way to decouple SPIN because most RDF graph database vendors still do not support the standard.



The approach that I've come up with using GraphDB is to load my ontology into GraphDB and then execute each spin:rule present in my ontology as a SPARQL UPDATE/INSERT.



First thing I'm trying to figure out if I can temporarily turn off the GraphDB reasoner while I make a set of SPARQL INSERTS/UPDATES and then turn on the reasoner thereafter.



Secondly, although likely not recommended, would it be possible for the SPARQL INSERT/UPDATES to be added to the implicit graph and not the explicit graph?



If someone has a better idea on how to do this do let me know.










share|improve this question






















  • They have rules: graphdb.ontotext.com/documentation/standard/reasoning.html
    – Stanislav Kralin
    Aug 11 at 15:17






  • 1




    I agree that rules are likely the best way to go, but 1) I don't believe that rules can create new IRIs which I require. 2) I want my rules to be written in some standard's based language. 3) The rules I have are fairly complex, which is why I went down the SPIN route in the first place.
    – Anuj Khanna
    Aug 11 at 18:45












  • Well, possibly you could try RDF4J: stackoverflow.com/search?q=rdf4j+spin+is%3Aq
    – Stanislav Kralin
    Aug 11 at 20:09













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have an ontology that I created in TopBraid that uses SPIN + OWL inference. I've been trying to figure out a way to decouple SPIN because most RDF graph database vendors still do not support the standard.



The approach that I've come up with using GraphDB is to load my ontology into GraphDB and then execute each spin:rule present in my ontology as a SPARQL UPDATE/INSERT.



First thing I'm trying to figure out if I can temporarily turn off the GraphDB reasoner while I make a set of SPARQL INSERTS/UPDATES and then turn on the reasoner thereafter.



Secondly, although likely not recommended, would it be possible for the SPARQL INSERT/UPDATES to be added to the implicit graph and not the explicit graph?



If someone has a better idea on how to do this do let me know.










share|improve this question













I have an ontology that I created in TopBraid that uses SPIN + OWL inference. I've been trying to figure out a way to decouple SPIN because most RDF graph database vendors still do not support the standard.



The approach that I've come up with using GraphDB is to load my ontology into GraphDB and then execute each spin:rule present in my ontology as a SPARQL UPDATE/INSERT.



First thing I'm trying to figure out if I can temporarily turn off the GraphDB reasoner while I make a set of SPARQL INSERTS/UPDATES and then turn on the reasoner thereafter.



Secondly, although likely not recommended, would it be possible for the SPARQL INSERT/UPDATES to be added to the implicit graph and not the explicit graph?



If someone has a better idea on how to do this do let me know.







graphdb






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 11 at 14:51









Anuj Khanna

212




212












  • They have rules: graphdb.ontotext.com/documentation/standard/reasoning.html
    – Stanislav Kralin
    Aug 11 at 15:17






  • 1




    I agree that rules are likely the best way to go, but 1) I don't believe that rules can create new IRIs which I require. 2) I want my rules to be written in some standard's based language. 3) The rules I have are fairly complex, which is why I went down the SPIN route in the first place.
    – Anuj Khanna
    Aug 11 at 18:45












  • Well, possibly you could try RDF4J: stackoverflow.com/search?q=rdf4j+spin+is%3Aq
    – Stanislav Kralin
    Aug 11 at 20:09


















  • They have rules: graphdb.ontotext.com/documentation/standard/reasoning.html
    – Stanislav Kralin
    Aug 11 at 15:17






  • 1




    I agree that rules are likely the best way to go, but 1) I don't believe that rules can create new IRIs which I require. 2) I want my rules to be written in some standard's based language. 3) The rules I have are fairly complex, which is why I went down the SPIN route in the first place.
    – Anuj Khanna
    Aug 11 at 18:45












  • Well, possibly you could try RDF4J: stackoverflow.com/search?q=rdf4j+spin+is%3Aq
    – Stanislav Kralin
    Aug 11 at 20:09
















They have rules: graphdb.ontotext.com/documentation/standard/reasoning.html
– Stanislav Kralin
Aug 11 at 15:17




They have rules: graphdb.ontotext.com/documentation/standard/reasoning.html
– Stanislav Kralin
Aug 11 at 15:17




1




1




I agree that rules are likely the best way to go, but 1) I don't believe that rules can create new IRIs which I require. 2) I want my rules to be written in some standard's based language. 3) The rules I have are fairly complex, which is why I went down the SPIN route in the first place.
– Anuj Khanna
Aug 11 at 18:45






I agree that rules are likely the best way to go, but 1) I don't believe that rules can create new IRIs which I require. 2) I want my rules to be written in some standard's based language. 3) The rules I have are fairly complex, which is why I went down the SPIN route in the first place.
– Anuj Khanna
Aug 11 at 18:45














Well, possibly you could try RDF4J: stackoverflow.com/search?q=rdf4j+spin+is%3Aq
– Stanislav Kralin
Aug 11 at 20:09




Well, possibly you could try RDF4J: stackoverflow.com/search?q=rdf4j+spin+is%3Aq
– Stanislav Kralin
Aug 11 at 20:09












1 Answer
1






active

oldest

votes

















up vote
0
down vote













I suppose you can turn off the reasoner by selecting a default ruleset the is empty (or very basic), as explained here http://graphdb.ontotext.com/documentation/free/reasoning.html (Set a default ruleset).



But if you want your SPIN rules, translated to INSERT/UPDATE, to be completely executed you must
1- execute the NSERT/UPDATEs
2- lauch the reasoner
repeat 1 and 2 until no new triple is generated






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51800842%2fspin-hack-in-graphdb%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I suppose you can turn off the reasoner by selecting a default ruleset the is empty (or very basic), as explained here http://graphdb.ontotext.com/documentation/free/reasoning.html (Set a default ruleset).



    But if you want your SPIN rules, translated to INSERT/UPDATE, to be completely executed you must
    1- execute the NSERT/UPDATEs
    2- lauch the reasoner
    repeat 1 and 2 until no new triple is generated






    share|improve this answer

























      up vote
      0
      down vote













      I suppose you can turn off the reasoner by selecting a default ruleset the is empty (or very basic), as explained here http://graphdb.ontotext.com/documentation/free/reasoning.html (Set a default ruleset).



      But if you want your SPIN rules, translated to INSERT/UPDATE, to be completely executed you must
      1- execute the NSERT/UPDATEs
      2- lauch the reasoner
      repeat 1 and 2 until no new triple is generated






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I suppose you can turn off the reasoner by selecting a default ruleset the is empty (or very basic), as explained here http://graphdb.ontotext.com/documentation/free/reasoning.html (Set a default ruleset).



        But if you want your SPIN rules, translated to INSERT/UPDATE, to be completely executed you must
        1- execute the NSERT/UPDATEs
        2- lauch the reasoner
        repeat 1 and 2 until no new triple is generated






        share|improve this answer












        I suppose you can turn off the reasoner by selecting a default ruleset the is empty (or very basic), as explained here http://graphdb.ontotext.com/documentation/free/reasoning.html (Set a default ruleset).



        But if you want your SPIN rules, translated to INSERT/UPDATE, to be completely executed you must
        1- execute the NSERT/UPDATEs
        2- lauch the reasoner
        repeat 1 and 2 until no new triple is generated







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 8 at 22:32









        Gilles Falquet

        1




        1






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51800842%2fspin-hack-in-graphdb%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Guess what letter conforming each word

            Port of Spain

            Run scheduled task as local user group (not BUILTIN)