xmlrdf/commit

Provide declaration of predicate options.

authorJan Wielemaker
Tue May 15 10:15:00 2012 +0200
committerJan Wielemaker
Tue May 15 10:15:00 2012 +0200
commitaed13e785c33844231b75dbb7023861e3d2916e8
treed014a7419239946653642d66fe3e5c4622936bd8
parentec8cf3d77f667cda6e5463ed4e89756aa9e54340
Diff style: patch stat
diff --git a/lib/xmlrdf/xmlrdf.pl b/lib/xmlrdf/xmlrdf.pl
index a400757..626cac9 100644
--- a/lib/xmlrdf/xmlrdf.pl
+++ b/lib/xmlrdf/xmlrdf.pl
@@ -65,6 +65,17 @@
 	       predicate_style:oneof(['OneTwo','oneTwo',
 				      'one_two','One_Two',keep])='oneTwo').
 
+:- predicate_options(load_xml_as_rdf/2, 2,
+		     [ unit(any),
+		       dialect(oneof([xml,xmlns])),
+		       graph(atom),
+		       use_schema(boolean),
+		       prefix(atom),
+		       class_style(oneof([oneTwo,'OneTwo',one_two,'One_Two'])),
+		       predicate_style(oneof([oneTwo,'OneTwo',one_two,'One_Two']))
+		     ]).
+
+
 %%	load_xml_as_rdf(From, Options)
 %
 %	Convert an XML file into `crude' RDF. From is either a filename,