Thanks John and Geert, 1) I used mlcp: Unknown input type: text. I skipped the -input_file_type option (i.e. type=document), and it worked, as Geert finally described. I still need to find a good -output_uri_replacement myself, since an output_uri for this 1 file cannot be set directly.
2) Okay, DROP GRAPH </graphname> works. The XML files which hosted the triples were also deleted in this case. Norbert Von: [email protected] [mailto:[email protected]] Im Auftrag von John Snelson Gesendet: Montag, 14. Dezember 2015 16:12 An: [email protected] Betreff: Re: [MarkLogic Dev General] register own inference rule - not found 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
