mustrd 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,60 +1,60 @@
1
- @prefix owl: <http://www.w3.org/2002/07/owl#> .
2
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
3
- @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
4
- @prefix xs: <http://www.w3.org/2001/XMLSchema#> .
5
- @prefix must: <https://mustrd.com/model/> .
6
- @prefix test-data: <https://semanticpartners.com/data/test/> .
7
-
8
- test-data:
9
- rdf:type owl:Ontology ;
10
- owl:imports rdf:, rdfs: ;
11
- rdfs:comment "" ;
12
- rdfs:label "Test Data" .
13
-
14
- test-data:sub
15
- a owl:NamedIndividual ;
16
- rdfs:label "test subject" .
17
-
18
- test-data:pred
19
- a rdf:Property ;
20
- rdfs:label "test predicate" .
21
-
22
- test-data:obj
23
- a owl:NamedIndividual ;
24
- rdfs:label "test object" .
25
-
26
- test-data:subject
27
- a owl:NamedIndividual ;
28
- rdfs:label "test subject" .
29
-
30
- test-data:predicate
31
- a rdf:Property ;
32
- rdfs:label "test predicate" .
33
-
34
- test-data:object
35
- a owl:NamedIndividual ;
36
- rdfs:label "test object 1" .
37
-
38
- test-data:sub1
39
- a owl:NamedIndividual ;
40
- rdfs:label "test subject 1" .
41
-
42
- test-data:pred1
43
- a rdf:Property ;
44
- rdfs:label "test predicate 1" .
45
-
46
- test-data:obj1
47
- a owl:NamedIndividual ;
48
- rdfs:label "test object 1" .
49
-
50
- test-data:sub2
51
- a owl:NamedIndividual ;
52
- rdfs:label "test subject 2" .
53
-
54
- test-data:pred2
55
- a rdf:Property ;
56
- rdfs:label "test predicate 2" .
57
-
58
- test-data:obj2
59
- a owl:NamedIndividual ;
60
- rdfs:label "test object 2" .
1
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
2
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
3
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
4
+ @prefix xs: <http://www.w3.org/2001/XMLSchema#> .
5
+ @prefix must: <https://mustrd.com/model/> .
6
+ @prefix test-data: <https://semanticpartners.com/data/test/> .
7
+
8
+ test-data:
9
+ rdf:type owl:Ontology ;
10
+ owl:imports rdf:, rdfs: ;
11
+ rdfs:comment "" ;
12
+ rdfs:label "Test Data" .
13
+
14
+ test-data:sub
15
+ a owl:NamedIndividual ;
16
+ rdfs:label "test subject" .
17
+
18
+ test-data:pred
19
+ a rdf:Property ;
20
+ rdfs:label "test predicate" .
21
+
22
+ test-data:obj
23
+ a owl:NamedIndividual ;
24
+ rdfs:label "test object" .
25
+
26
+ test-data:subject
27
+ a owl:NamedIndividual ;
28
+ rdfs:label "test subject" .
29
+
30
+ test-data:predicate
31
+ a rdf:Property ;
32
+ rdfs:label "test predicate" .
33
+
34
+ test-data:object
35
+ a owl:NamedIndividual ;
36
+ rdfs:label "test object 1" .
37
+
38
+ test-data:sub1
39
+ a owl:NamedIndividual ;
40
+ rdfs:label "test subject 1" .
41
+
42
+ test-data:pred1
43
+ a rdf:Property ;
44
+ rdfs:label "test predicate 1" .
45
+
46
+ test-data:obj1
47
+ a owl:NamedIndividual ;
48
+ rdfs:label "test object 1" .
49
+
50
+ test-data:sub2
51
+ a owl:NamedIndividual ;
52
+ rdfs:label "test subject 2" .
53
+
54
+ test-data:pred2
55
+ a rdf:Property ;
56
+ rdfs:label "test predicate 2" .
57
+
58
+ test-data:obj2
59
+ a owl:NamedIndividual ;
60
+ rdfs:label "test object 2" .
@@ -1,174 +1,174 @@
1
- @base <https://mustrd.com/triplestore/> .
2
- @prefix : <https://mustrd.com/triplestore/> .
3
- @prefix dc: <http://purl.org/dc/elements/1.1/> .
4
- @prefix sh: <http://www.w3.org/ns/shacl#> .
5
- @prefix owl: <http://www.w3.org/2002/07/owl#> .
6
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
7
- @prefix xml: <http://www.w3.org/XML/1998/namespace> .
8
- @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
9
- @prefix foaf: <http://xmlns.com/foaf/spec/> .
10
- @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
11
- @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
12
- #
13
- #
14
- # #################################################################
15
- # #
16
- # # Data properties
17
- # #
18
- # #################################################################
19
- #
20
- #
21
- # https://mustrd.com/triplestore/gqeURI
22
- #
23
- # https://mustrd.com/triplestore/inputGraph
24
- #
25
- # https://mustrd.com/triplestore/outputGraph
26
- #
27
- # https://mustrd.com/triplestore/password
28
- #
29
- # https://mustrd.com/triplestore/port
30
- #
31
- # https://mustrd.com/triplestore/repository
32
- #
33
- # https://mustrd.com/triplestore/url
34
- #
35
- # https://mustrd.com/triplestore/username
36
- #
37
- #
38
- #
39
- # #################################################################
40
- # #
41
- # # Classes
42
- # #
43
- # #################################################################
44
- #
45
- #
46
- # https://mustrd.com/triplestore/Anzo
47
- #
48
- # https://mustrd.com/triplestore/ExternalTripleStore
49
- #
50
- # https://mustrd.com/triplestore/GraphDb
51
- #
52
- # https://mustrd.com/triplestore/InternalTripleStore
53
- #
54
- # https://mustrd.com/triplestore/RdfLib
55
- #
56
- # https://mustrd.com/triplestore/TripleStore
57
- #
58
- # Generated by the OWL API (version 4.5.26.2023-07-17T20:34:13Z) https://github.com/owlcs/owlapi
59
-
60
- <> a owl:Ontology;
61
- rdfs:label "triple store ontology" .
62
-
63
- :gqeURI a owl:DatatypeProperty;
64
- rdfs:domain :Anzo;
65
- rdfs:range xsd:string;
66
- rdfs:label "gqeURI" .
67
-
68
- :inputGraph a owl:DatatypeProperty;
69
- rdfs:domain :TripleStore;
70
- rdfs:range xsd:string;
71
- rdfs:label "inputGraph" .
72
-
73
- :outputGraph a owl:DatatypeProperty;
74
- rdfs:domain :TripleStore;
75
- rdfs:range xsd:string;
76
- rdfs:comment """Uri of the graph where to insert/delete the triples
77
-
78
- In some triple stores there is a default insert graph like in graphDB:
79
- In graphDB the default insert graph is called: <http://www.openrdf.org/schema/sesame#nil>
80
- or
81
- <http://rdf4j.org/schema/rdf4j#nil>
82
-
83
- Other triple stores do not define default insert graph like anzograph.
84
- For those triple stores, this property must be mandatory""";
85
- rdfs:label "outputGraph" .
86
-
87
- :password a owl:DatatypeProperty;
88
- rdfs:domain :ExternalTripleStore;
89
- rdfs:range xsd:string;
90
- rdfs:label "password" .
91
-
92
- :port a owl:DatatypeProperty;
93
- rdfs:domain :ExternalTripleStore;
94
- rdfs:range xsd:string;
95
- rdfs:comment "Triple store port";
96
- rdfs:label "port" .
97
-
98
- :repository a owl:DatatypeProperty;
99
- rdfs:domain :GraphDb;
100
- rdfs:range xsd:string;
101
- rdfs:label "repository" .
102
-
103
- :url a owl:DatatypeProperty;
104
- rdfs:domain :ExternalTripleStore;
105
- rdfs:range xsd:string;
106
- rdfs:comment "triple store URL";
107
- rdfs:label "url" .
108
-
109
- :username a owl:DatatypeProperty;
110
- rdfs:domain :ExternalTripleStore;
111
- rdfs:range xsd:string;
112
- rdfs:label "username" .
113
-
114
- :Anzo a owl:Class;
115
- rdfs:subClassOf :ExternalTripleStore;
116
- rdfs:comment """TODO: model this:
117
-
118
- definition of RDF dataset:
119
-
120
- default graph=
121
- RDF merge of default-graph-uri if exists
122
- else RDF merge of FROM if exists
123
- else all graphs in anzo graph (if you query a graphmart, default-graph-uri will be automatically set to the layers of the graphmart), if you are not sysadmin and you do not define the default graph, then the query will fail since you don't have permissions on all graphs
124
- if default-graph-uri is defined then FROM clauses are ignored
125
-
126
- default named graph =
127
- RDF merge of named-graph-uri if exists
128
- else RDF merge of FROM NAMED if exists
129
- else default graph if exists
130
- all graphs in anzo graph (if you query a graphmart, default-graph-uri will be automatically set to the layers of the graphmart), if you are not sysadmin and you do not define the default graph, then the query will fail since you don't have permissions on all graphs
131
- if named-graph-uri is defined then FROM NAMED clauses are ignored
132
-
133
- There is no default insert graph. If you try to insert/delete without graph clause, your query will fail.""";
134
- rdfs:label "Anzo" .
135
-
136
- :ExternalTripleStore a owl:Class;
137
- rdfs:subClassOf :TripleStore .
138
-
139
- :GraphDb a owl:Class;
140
- rdfs:subClassOf :ExternalTripleStore;
141
- rdfs:comment """TODO: model this:
142
-
143
- Definition of RDF dataset in graphDB:
144
-
145
- default graph (in the sense of W3C, called default dataset in graphDB) =
146
- Virtual graph that exist only for a query and represent all triples accessible outside of a graph clause in a sparql query =
147
- RDF merge of default-graph-uri if exists
148
- else RDF merge of FROM if exists
149
- else all graphs in the repository, including default insert graph
150
- you can query default insert graph by including it (<http://www.openrdf.org/schema/sesame#nil> or <http://rdf4j.org/schema/rdf4j#nil>) in a default-graph-uri parameter or a FROM clause
151
- If default-graph-uri is defined, then FROM clause is ignored
152
-
153
- default named graph =
154
- All triples accessible inside a graph clause:
155
- RDF merge of named-graph-uri if exists
156
- else RDF merge of FROM NAMED if exist
157
- else all graphs in the repository, EXCLUDING default insert graph
158
- (To be exact you can query the default insert graph only if you name it GRAPH <http://www.openrdf.org/schema/sesame#nil> or GRAPH <http://rdf4j.org/schema/rdf4j#nil>, but you won't query it with GRAPH ?graph)
159
- default insert graph can be added to named-graph-uri or FROM NAMED
160
- If a default-graph-uri is defined but no named-graph-uri, then default named graph = void
161
-
162
- default insert graph (called \"The default graph\" in graphDB) =
163
- Graph where triples are inserted / deleted when no graph clause is given in an INSERT or DELETE clause""";
164
- rdfs:label "GraphDb" .
165
-
166
- :InternalTripleStore a owl:Class;
167
- rdfs:subClassOf :TripleStore .
168
-
169
- :RdfLib a owl:Class;
170
- rdfs:subClassOf :InternalTripleStore;
171
- rdfs:label "RdfLib" .
172
-
173
- :TripleStore a owl:Class;
174
- rdfs:label "TripleStore" .
1
+ @base <https://mustrd.com/triplestore/> .
2
+ @prefix : <https://mustrd.com/triplestore/> .
3
+ @prefix dc: <http://purl.org/dc/elements/1.1/> .
4
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
5
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
6
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
7
+ @prefix xml: <http://www.w3.org/XML/1998/namespace> .
8
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
9
+ @prefix foaf: <http://xmlns.com/foaf/spec/> .
10
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
11
+ @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
12
+ #
13
+ #
14
+ # #################################################################
15
+ # #
16
+ # # Data properties
17
+ # #
18
+ # #################################################################
19
+ #
20
+ #
21
+ # https://mustrd.com/triplestore/gqeURI
22
+ #
23
+ # https://mustrd.com/triplestore/inputGraph
24
+ #
25
+ # https://mustrd.com/triplestore/outputGraph
26
+ #
27
+ # https://mustrd.com/triplestore/password
28
+ #
29
+ # https://mustrd.com/triplestore/port
30
+ #
31
+ # https://mustrd.com/triplestore/repository
32
+ #
33
+ # https://mustrd.com/triplestore/url
34
+ #
35
+ # https://mustrd.com/triplestore/username
36
+ #
37
+ #
38
+ #
39
+ # #################################################################
40
+ # #
41
+ # # Classes
42
+ # #
43
+ # #################################################################
44
+ #
45
+ #
46
+ # https://mustrd.com/triplestore/Anzo
47
+ #
48
+ # https://mustrd.com/triplestore/ExternalTripleStore
49
+ #
50
+ # https://mustrd.com/triplestore/GraphDb
51
+ #
52
+ # https://mustrd.com/triplestore/InternalTripleStore
53
+ #
54
+ # https://mustrd.com/triplestore/RdfLib
55
+ #
56
+ # https://mustrd.com/triplestore/TripleStore
57
+ #
58
+ # Generated by the OWL API (version 4.5.26.2023-07-17T20:34:13Z) https://github.com/owlcs/owlapi
59
+
60
+ <> a owl:Ontology;
61
+ rdfs:label "triple store ontology" .
62
+
63
+ :gqeURI a owl:DatatypeProperty;
64
+ rdfs:domain :Anzo;
65
+ rdfs:range xsd:string;
66
+ rdfs:label "gqeURI" .
67
+
68
+ :inputGraph a owl:DatatypeProperty;
69
+ rdfs:domain :TripleStore;
70
+ rdfs:range xsd:string;
71
+ rdfs:label "inputGraph" .
72
+
73
+ :outputGraph a owl:DatatypeProperty;
74
+ rdfs:domain :TripleStore;
75
+ rdfs:range xsd:string;
76
+ rdfs:comment """Uri of the graph where to insert/delete the triples
77
+
78
+ In some triple stores there is a default insert graph like in graphDB:
79
+ In graphDB the default insert graph is called: <http://www.openrdf.org/schema/sesame#nil>
80
+ or
81
+ <http://rdf4j.org/schema/rdf4j#nil>
82
+
83
+ Other triple stores do not define default insert graph like anzograph.
84
+ For those triple stores, this property must be mandatory""";
85
+ rdfs:label "outputGraph" .
86
+
87
+ :password a owl:DatatypeProperty;
88
+ rdfs:domain :ExternalTripleStore;
89
+ rdfs:range xsd:string;
90
+ rdfs:label "password" .
91
+
92
+ :port a owl:DatatypeProperty;
93
+ rdfs:domain :ExternalTripleStore;
94
+ rdfs:range xsd:string;
95
+ rdfs:comment "Triple store port";
96
+ rdfs:label "port" .
97
+
98
+ :repository a owl:DatatypeProperty;
99
+ rdfs:domain :GraphDb;
100
+ rdfs:range xsd:string;
101
+ rdfs:label "repository" .
102
+
103
+ :url a owl:DatatypeProperty;
104
+ rdfs:domain :ExternalTripleStore;
105
+ rdfs:range xsd:string;
106
+ rdfs:comment "triple store URL";
107
+ rdfs:label "url" .
108
+
109
+ :username a owl:DatatypeProperty;
110
+ rdfs:domain :ExternalTripleStore;
111
+ rdfs:range xsd:string;
112
+ rdfs:label "username" .
113
+
114
+ :Anzo a owl:Class;
115
+ rdfs:subClassOf :ExternalTripleStore;
116
+ rdfs:comment """TODO: model this:
117
+
118
+ definition of RDF dataset:
119
+
120
+ default graph=
121
+ RDF merge of default-graph-uri if exists
122
+ else RDF merge of FROM if exists
123
+ else all graphs in anzo graph (if you query a graphmart, default-graph-uri will be automatically set to the layers of the graphmart), if you are not sysadmin and you do not define the default graph, then the query will fail since you don't have permissions on all graphs
124
+ if default-graph-uri is defined then FROM clauses are ignored
125
+
126
+ default named graph =
127
+ RDF merge of named-graph-uri if exists
128
+ else RDF merge of FROM NAMED if exists
129
+ else default graph if exists
130
+ all graphs in anzo graph (if you query a graphmart, default-graph-uri will be automatically set to the layers of the graphmart), if you are not sysadmin and you do not define the default graph, then the query will fail since you don't have permissions on all graphs
131
+ if named-graph-uri is defined then FROM NAMED clauses are ignored
132
+
133
+ There is no default insert graph. If you try to insert/delete without graph clause, your query will fail.""";
134
+ rdfs:label "Anzo" .
135
+
136
+ :ExternalTripleStore a owl:Class;
137
+ rdfs:subClassOf :TripleStore .
138
+
139
+ :GraphDb a owl:Class;
140
+ rdfs:subClassOf :ExternalTripleStore;
141
+ rdfs:comment """TODO: model this:
142
+
143
+ Definition of RDF dataset in graphDB:
144
+
145
+ default graph (in the sense of W3C, called default dataset in graphDB) =
146
+ Virtual graph that exist only for a query and represent all triples accessible outside of a graph clause in a sparql query =
147
+ RDF merge of default-graph-uri if exists
148
+ else RDF merge of FROM if exists
149
+ else all graphs in the repository, including default insert graph
150
+ you can query default insert graph by including it (<http://www.openrdf.org/schema/sesame#nil> or <http://rdf4j.org/schema/rdf4j#nil>) in a default-graph-uri parameter or a FROM clause
151
+ If default-graph-uri is defined, then FROM clause is ignored
152
+
153
+ default named graph =
154
+ All triples accessible inside a graph clause:
155
+ RDF merge of named-graph-uri if exists
156
+ else RDF merge of FROM NAMED if exist
157
+ else all graphs in the repository, EXCLUDING default insert graph
158
+ (To be exact you can query the default insert graph only if you name it GRAPH <http://www.openrdf.org/schema/sesame#nil> or GRAPH <http://rdf4j.org/schema/rdf4j#nil>, but you won't query it with GRAPH ?graph)
159
+ default insert graph can be added to named-graph-uri or FROM NAMED
160
+ If a default-graph-uri is defined but no named-graph-uri, then default named graph = void
161
+
162
+ default insert graph (called \"The default graph\" in graphDB) =
163
+ Graph where triples are inserted / deleted when no graph clause is given in an INSERT or DELETE clause""";
164
+ rdfs:label "GraphDb" .
165
+
166
+ :InternalTripleStore a owl:Class;
167
+ rdfs:subClassOf :TripleStore .
168
+
169
+ :RdfLib a owl:Class;
170
+ rdfs:subClassOf :InternalTripleStore;
171
+ rdfs:label "RdfLib" .
172
+
173
+ :TripleStore a owl:Class;
174
+ rdfs:label "TripleStore" .
@@ -1,42 +1,42 @@
1
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
2
- @prefix sh: <http://www.w3.org/ns/shacl#> .
3
- @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4
- @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
5
- @prefix ex: <http://www.example.org/#> .
6
- @prefix owl: <http://www.w3.org/2002/07/owl#> .
7
- @prefix triplestore: <https://mustrd.com/triplestore/> .
8
-
9
- triplestore:ExternalTripleStoreShape
10
- a sh:NodeShape ;
11
- sh:targetClass triplestore:ExternalTripleStore ;
12
- sh:property [ sh:path triplestore:url ;
13
- sh:minCount 1 ;
14
- sh:maxCount 1 ],
15
- [ sh:path triplestore:port ;
16
- sh:minCount 1 ;
17
- sh:maxCount 1 ],
18
- [ sh:path triplestore:username ;
19
- sh:maxCount 1 ],
20
- [ sh:path triplestore:password ;
21
- sh:maxCount 1 ] .
22
-
23
- triplestore:AnzoShape
24
- a sh:NodeShape ;
25
- sh:targetClass triplestore:Anzo ;
26
- sh:property [ sh:path triplestore:gqeURI ;
27
- sh:minCount 1 ;
28
- sh:maxCount 1 ],
29
- [ sh:path triplestore:outputGraph ;
30
- sh:minCount 1 ;
31
- sh:maxCount 1 ],
32
- # For anzo the input graph is not really necessary if the user is sysadmin
33
- # but querying all graphs in AZG is usually not a good idea, so for the moment this is forbidden
34
- [ sh:path triplestore:inputGraph ;
35
- sh:minCount 1 ] .
36
-
37
- triplestore:GraphDbShape
38
- a sh:NodeShape ;
39
- sh:targetClass triplestore:GraphDb ;
40
- sh:property [ sh:path triplestore:repository ;
41
- sh:minCount 1 ;
1
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
2
+ @prefix sh: <http://www.w3.org/ns/shacl#> .
3
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
5
+ @prefix ex: <http://www.example.org/#> .
6
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
7
+ @prefix triplestore: <https://mustrd.com/triplestore/> .
8
+
9
+ triplestore:ExternalTripleStoreShape
10
+ a sh:NodeShape ;
11
+ sh:targetClass triplestore:ExternalTripleStore ;
12
+ sh:property [ sh:path triplestore:url ;
13
+ sh:minCount 1 ;
14
+ sh:maxCount 1 ],
15
+ [ sh:path triplestore:port ;
16
+ sh:minCount 1 ;
17
+ sh:maxCount 1 ],
18
+ [ sh:path triplestore:username ;
19
+ sh:maxCount 1 ],
20
+ [ sh:path triplestore:password ;
21
+ sh:maxCount 1 ] .
22
+
23
+ triplestore:AnzoShape
24
+ a sh:NodeShape ;
25
+ sh:targetClass triplestore:Anzo ;
26
+ sh:property [ sh:path triplestore:gqeURI ;
27
+ sh:minCount 1 ;
28
+ sh:maxCount 1 ],
29
+ [ sh:path triplestore:outputGraph ;
30
+ sh:minCount 1 ;
31
+ sh:maxCount 1 ],
32
+ # For anzo the input graph is not really necessary if the user is sysadmin
33
+ # but querying all graphs in AZG is usually not a good idea, so for the moment this is forbidden
34
+ [ sh:path triplestore:inputGraph ;
35
+ sh:minCount 1 ] .
36
+
37
+ triplestore:GraphDbShape
38
+ a sh:NodeShape ;
39
+ sh:targetClass triplestore:GraphDb ;
40
+ sh:property [ sh:path triplestore:repository ;
41
+ sh:minCount 1 ;
42
42
  sh:maxCount 1 ] .