Hi Norbert, If you use MLCP to upload the rules, just provide a path, no type. It will take `documents` as default input_file_type, and `mixed` as document_type. As long as the files have .rules as extension, MarkLogic will recognize them as MarkLogic rules files, and ingest them as Text documents.
Make sure to specify your rules file when running SPARQL, or add it as a default ruleset to the database. Also make sure that you hand out document permissions appropriately. If you are not running your SPARQL code as admin, the user you are using needs to have a role that has read access to them, maybe also execute access (haven’t checked). Regarding dropping a GRAPH, how about DROP GRAPH: http://www.w3.org/TR/sparql11-update/#drop Cheers, Geert From: <[email protected]<mailto:[email protected]>> on behalf of "Weissenberg, Norbert" <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Monday, December 14, 2015 at 4:05 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] register own inference rule - not found Using ML 8.0-4 on Win7 I tried to register an own inference rule for a transitive property locatedIn, but the file was not found by MarkLogic during Console SPARQL queries: a) Firstly, I tried to store the rules file in MarkLogic’s Config folder and attached it like a standard rule – not found. b) Then I tried to give a file path, but of course that is not supported. c) The Semantics Guide only states “location is either a URI in the Schemas database … or a file name in <MarkLogic Install Directory>/Config”, but how exactly to import the rule into the Schemas database (e.g., what -input_file_type?) d) Finally I simply used locatedIn a owl:TransitiveProperty and attached that standard rule. That worked. But how to import rules files? Another question: how to best delete one complete graph using SPARQL Update? I used WITH </graphname> DELETE {?x ?y ?z} WHERE {?x ?y ?z} It works, but a nearly empty xml file remains. Best regards, Norbert
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
