Update schema and improve manual page MPSPARQL-29
[mp-sparql-moved-to-github.git] / doc / filter_sparql.rnc
index 3a97465..5caa487 100644 (file)
@@ -3,20 +3,27 @@
 namespace mp = "http://indexdata.com/metaproxy"
 
 filter_sparql =
-  attribute type { "xquery" },
+  attribute type { "sparql" },
   attribute id { xsd:NCName }?,
   attribute name { xsd:NCName }?,
+  element mp:defaults {
+    attribute uri { xsd:string }?
+  }?,
   element mp:db {
     attribute path { xsd:string },
-    attribute uri { xsd:string },
-    attribute schema { xsd:string },
+    attribute uri { xsd:string }?,
+    attribute schema { xsd:string }?,
+    attribute include { xsd:string }?,
     element mp:prefix { xsd:string }+,
-    element mp:field { xsd:string }*,
+    element mp:form { xsd:string }*,
     element mp:criteria { xsd:string }*,
     element mp:index {
       attribute type { xsd:string },
       xsd:string
     }*,
+    element mp:present {
+      attribute type { xsd:string },
+      xsd:string
+    }*,
     element mp:modifier { xsd:string }*
   }+
-