Skip to content

Instantly share code, notes, and snippets.

@EmmanuelOga
Created November 28, 2020 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EmmanuelOga/830dcb79a8bb2b80d525b78dbdd69809 to your computer and use it in GitHub Desktop.
Save EmmanuelOga/830dcb79a8bb2b80d525b78dbdd69809 to your computer and use it in GitHub Desktop.
A TerminusDB request to add a schema of Topics
_:b0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:When> ;
<woql:consequent> _:b1 ;
<woql:query> _:b102 .
_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:And> ;
<woql:query_list> _:b12, _:b17, _:b2, _:b22, _:b27, _:b32, _:b37, _:b42, _:b47, _:b52, _:b57, _:b62, _:b67, _:b7, _:b72, _:b77, _:b82, _:b87, _:b92, _:b97 .
_:b10 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:subClassOf" .
_:b100 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:domain" .
_:b101 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.footer" .
_:b102 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:True> .
_:b11 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic" .
_:b12 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "2"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b13 .
_:b13 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b14 ;
<woql:predicate> _:b15 ;
<woql:subject> _:b16 .
_:b14 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "owl:DatatypeProperty" .
_:b15 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdf:type" .
_:b16 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.author" .
_:b17 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "3"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b18 .
_:b18 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b19 ;
<woql:predicate> _:b20 ;
<woql:subject> _:b21 .
_:b19 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "xsd:string" .
_:b2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "0"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b3 .
_:b20 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:range" .
_:b21 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.author" .
_:b22 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "4"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b23 .
_:b23 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b24 ;
<woql:predicate> _:b25 ;
<woql:subject> _:b26 .
_:b24 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic" .
_:b25 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:domain" .
_:b26 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.author" .
_:b27 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "5"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b28 .
_:b28 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b29 ;
<woql:predicate> _:b30 ;
<woql:subject> _:b31 .
_:b29 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "owl:DatatypeProperty" .
_:b3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b4 ;
<woql:predicate> _:b5 ;
<woql:subject> _:b6 .
_:b30 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdf:type" .
_:b31 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.title" .
_:b32 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "6"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b33 .
_:b33 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b34 ;
<woql:predicate> _:b35 ;
<woql:subject> _:b36 .
_:b34 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "xsd:string" .
_:b35 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:range" .
_:b36 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.title" .
_:b37 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "7"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b38 .
_:b38 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b39 ;
<woql:predicate> _:b40 ;
<woql:subject> _:b41 .
_:b39 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic" .
_:b4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "owl:Class" .
_:b40 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:domain" .
_:b41 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.title" .
_:b42 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "8"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b43 .
_:b43 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b44 ;
<woql:predicate> _:b45 ;
<woql:subject> _:b46 .
_:b44 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "owl:DatatypeProperty" .
_:b45 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdf:type" .
_:b46 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.description" .
_:b47 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "9"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b48 .
_:b48 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b49 ;
<woql:predicate> _:b50 ;
<woql:subject> _:b51 .
_:b49 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "xsd:string" .
_:b5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdf:type" .
_:b50 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:range" .
_:b51 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.description" .
_:b52 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "10"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b53 .
_:b53 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b54 ;
<woql:predicate> _:b55 ;
<woql:subject> _:b56 .
_:b54 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic" .
_:b55 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:domain" .
_:b56 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.description" .
_:b57 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "11"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b58 .
_:b58 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b59 ;
<woql:predicate> _:b60 ;
<woql:subject> _:b61 .
_:b59 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "owl:DatatypeProperty" .
_:b6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic" .
_:b60 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdf:type" .
_:b61 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.header" .
_:b62 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "12"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b63 .
_:b63 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b64 ;
<woql:predicate> _:b65 ;
<woql:subject> _:b66 .
_:b64 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "xsd:string" .
_:b65 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:range" .
_:b66 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.header" .
_:b67 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "13"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b68 .
_:b68 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b69 ;
<woql:predicate> _:b70 ;
<woql:subject> _:b71 .
_:b69 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic" .
_:b7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "1"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b8 .
_:b70 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:domain" .
_:b71 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.header" .
_:b72 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "14"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b73 .
_:b73 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b74 ;
<woql:predicate> _:b75 ;
<woql:subject> _:b76 .
_:b74 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "owl:DatatypeProperty" .
_:b75 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdf:type" .
_:b76 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.body" .
_:b77 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "15"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b78 .
_:b78 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b79 ;
<woql:predicate> _:b80 ;
<woql:subject> _:b81 .
_:b79 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "xsd:string" .
_:b8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b9 ;
<woql:predicate> _:b10 ;
<woql:subject> _:b11 .
_:b80 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:range" .
_:b81 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.body" .
_:b82 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "16"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b83 .
_:b83 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b84 ;
<woql:predicate> _:b85 ;
<woql:subject> _:b86 .
_:b84 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic" .
_:b85 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:domain" .
_:b86 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.body" .
_:b87 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "17"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b88 .
_:b88 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b89 ;
<woql:predicate> _:b90 ;
<woql:subject> _:b91 .
_:b89 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "owl:DatatypeProperty" .
_:b9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "system:Document" .
_:b90 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdf:type" .
_:b91 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.footer" .
_:b92 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "18"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b93 .
_:b93 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b94 ;
<woql:predicate> _:b95 ;
<woql:subject> _:b96 .
_:b94 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "xsd:string" .
_:b95 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "rdfs:range" .
_:b96 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic.footer" .
_:b97 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:QueryListElement> ;
<woql:index> "19"^^<xsd:nonNegativeInteger> ;
<woql:query> _:b98 .
_:b98 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:AddQuad> ;
<woql:graph> "schema/main"^^<xsd:string> ;
<woql:object> _:b99 ;
<woql:predicate> _:b100 ;
<woql:subject> _:b101 .
_:b99 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <woql:Node> ;
<woql:node> "scm:Topic" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment