mustrd 0.3.0.0__py3-none-any.whl → 0.3.1a1__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.
mustrd/README.md CHANGED
@@ -27,3 +27,5 @@ As the project is actually built from the requirements.txt file at the project r
27
27
 
28
28
  `poetry export -f requirements.txt --without-hashes > requirements.txt`
29
29
 
30
+ We also recommend pairing MustRD with the VS Code plugin [faubulous.mentor](https://marketplace.visualstudio.com/items?itemName=faubulous.mentor) to enhance your development experience and streamline working with SPARQL and RDF specifications.
31
+
mustrd/logger_setup.py CHANGED
@@ -51,3 +51,5 @@ def setup_logger(name: str) -> logging.Logger:
51
51
  def flush():
52
52
  logging.shutdown()
53
53
  sys.stdout.flush()
54
+
55
+ logging.getLogger("edn_format").setLevel(logging.WARNING)
@@ -140,10 +140,20 @@ must:OrderedTableDatasetShape
140
140
  must:FileDatasetShape
141
141
  a sh:NodeShape ;
142
142
  sh:targetClass must:FileDataset ;
143
- sh:property [ sh:path must:file ;
144
- sh:datatype xsd:string ;
145
- sh:minCount 1 ;
146
- sh:maxCount 1 ; ] .
143
+ sh:or (
144
+ [
145
+ sh:path must:file ;
146
+ sh:datatype xsd:string ;
147
+ sh:maxCount 1 ;
148
+ ]
149
+ [
150
+ sh:path must:fileurl ;
151
+ sh:nodeKind sh:IRI ;
152
+ sh:minCount 1 ;
153
+ sh:maxCount 1 ;
154
+ ]
155
+ )
156
+ .
147
157
 
148
158
  must:StatementShape
149
159
  a sh:NodeShape ;
@@ -252,8 +262,8 @@ must:AnzoGraphmartQueryDrivenTemplatedStepSparqlSourceShape
252
262
  must:SpadeEdnGroupSourceShape
253
263
  a sh:NodeShape ;
254
264
  sh:targetClass must:SpadeEdnGroupSource ;
255
- sh:property [ sh:path must:file ;
256
- sh:message "A SpadeEdnGroupSource must have a file property pointing to the spade.edn config." ;
265
+ sh:property [ sh:path must:fileurl ;
266
+ sh:message "A SpadeEdnGroupSource must have a fileurl property pointing to the spade.edn config." ;
257
267
  sh:minCount 1 ;
258
268
  sh:maxCount 1 ; ] ;
259
269
  sh:property [ sh:path must:groupId ;
mustrd/model/ontology.ttl CHANGED
@@ -146,7 +146,7 @@ sh:order rdf:type owl:DatatypeProperty ;
146
146
 
147
147
  ### https://mustrd.com/model/file
148
148
  :file rdf:type owl:DatatypeProperty ;
149
- rdfs:comment "Relative or absolute path to local file" ;
149
+ rdfs:comment "Relative or absolute path to local file as a string, or a file:// url" ;
150
150
  rdfs:label "file" .
151
151
 
152
152
 
@@ -158,7 +158,6 @@ sh:order rdf:type owl:DatatypeProperty ;
158
158
 
159
159
  ### https://mustrd.com/model/fileurl
160
160
  :fileurl rdf:type owl:DatatypeProperty ;
161
- rdfs:domain :FileSparqlSource ;
162
161
  rdfs:comment "a full or relatively qualified file:// url. Relative to what? We haven't thought that through, yet." ;
163
162
  rdfs:isDefinedBy : ;
164
163
  rdfs:label "fileUrl" .