On 14/12/2015 15:05, Weissenberg, Norbert wrote:
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.

You shouldn't put your own rule files in the Config/ directory. If you did, 
you'd need to put it in the Config directory of every host, and you'd need to 
restart MarkLogic before you could see the new rule file.


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?)

Insert the document as text.


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.

Is it the graph document that's left? Have you tried "drop graph <graphname>"?

John


--
John Snelson, Lead Engineer                    http://twitter.com/jpcs
MarkLogic Corporation                         http://www.marklogic.com
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to