iolanta 2.1.6__py3-none-any.whl → 2.1.7__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.
iolanta/data/context.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  "@context":
2
- rdfs: "https://www.w3.org/2000/01/rdf-schema#"
2
+ rdfs: "http://www.w3.org/2000/01/rdf-schema#"
3
3
  rdf: https://www.w3.org/1999/02/22-rdf-syntax-ns#
4
4
  iolanta: https://iolanta.tech/
5
5
  owl: https://www.w3.org/2002/07/owl#
iolanta/data/iolanta.yaml CHANGED
@@ -4,7 +4,7 @@
4
4
  foaf: https://xmlns.com/foaf/0.1/
5
5
  owl: https://www.w3.org/2002/07/owl#
6
6
  iolanta: https://iolanta.tech/
7
- rdfs: "https://www.w3.org/2000/01/rdf-schema#"
7
+ rdfs: "http://www.w3.org/2000/01/rdf-schema#"
8
8
  rdf: https://www.w3.org/1999/02/22-rdf-syntax-ns#
9
9
 
10
10
  $included:
@@ -4,7 +4,7 @@
4
4
  foaf: https://xmlns.com/foaf/0.1/
5
5
  owl: https://www.w3.org/2002/07/owl#
6
6
  iolanta: https://iolanta.tech/
7
- rdfs: "https://www.w3.org/2000/01/rdf-schema#"
7
+ rdfs: "http://www.w3.org/2000/01/rdf-schema#"
8
8
  rdf: https://www.w3.org/1999/02/22-rdf-syntax-ns#
9
9
  np: https://www.nanopub.org/nschema#
10
10
  dcterms: https://purl.org/dc/terms/
@@ -88,12 +88,6 @@
88
88
  iolanta:hasDefaultFacet:
89
89
  $id: pkg:pypi/iolanta#textual-link
90
90
 
91
- - $id: https://wikiba.se/ontology#Statement
92
- iolanta:hasInstanceFacet:
93
- $id: pkg:pypi/iolanta#wikibase-statement-title
94
- $: Title
95
- →: https://iolanta.tech/datatypes/title
96
-
97
91
  - $id: rdfs:Class
98
92
  iolanta:hasInstanceFacet:
99
93
  $id: pkg:pypi/iolanta#textual-class
@@ -4,7 +4,7 @@
4
4
  foaf: https://xmlns.com/foaf/0.1/
5
5
  owl: https://www.w3.org/2002/07/owl#
6
6
  iolanta: https://iolanta.tech/
7
- rdfs: "https://www.w3.org/2000/01/rdf-schema#"
7
+ rdfs: "http://www.w3.org/2000/01/rdf-schema#"
8
8
  rdf: https://www.w3.org/1999/02/22-rdf-syntax-ns#
9
9
  dcterms: https://purl.org/dc/terms/
10
10
  dcam: https://purl.org/dc/dcam/
@@ -0,0 +1,4 @@
1
+ from iolanta.facets.mkdocs_material_insiders_markdown.facet import MkDocsMaterialInsidersMarkdownFacet
2
+
3
+ __all__ = ['MkDocsMaterialInsidersMarkdownFacet']
4
+
@@ -0,0 +1,20 @@
1
+ "@context":
2
+ "@import": https://json-ld.org/contexts/dollar-convenience.jsonld
3
+ rdfs: "http://www.w3.org/2000/01/rdf-schema#"
4
+ rdf: https://www.w3.org/1999/02/22-rdf-syntax-ns#
5
+ iolanta: https://iolanta.tech/
6
+
7
+ $: rdfs:label
8
+
9
+ →:
10
+ "@type": "@id"
11
+ "@id": iolanta:outputs
12
+
13
+ ↦: iolanta:matches
14
+
15
+ $id: pkg:pypi/iolanta#mkdocs-material-insiders-markdown-datatype
16
+ $: OutputDatatype (mkdocs-material-insiders-markdown)
17
+
18
+ →: https://iolanta.tech/datatypes/mkdocs-material-insiders-markdown
19
+
20
+ ↦: ASK WHERE { $this a iolanta:OutputDatatype }
@@ -0,0 +1,86 @@
1
+ from pathlib import Path
2
+
3
+ from jinja2 import Environment, FileSystemLoader
4
+ from rdflib import URIRef
5
+
6
+ from iolanta.facets.facet import Facet
7
+ from iolanta.namespaces import DATATYPES, IOLANTA, RDF, RDFS
8
+
9
+
10
+ class MkDocsMaterialInsidersMarkdownFacet(Facet[str]):
11
+ """Render rdfs:Datatype nodes as mkdocs-material-insiders-markdown."""
12
+
13
+ META = Path(__file__).parent / 'data' / 'mkdocs_material_insiders_markdown.yamlld'
14
+ """Render rdfs:Datatype nodes as mkdocs-material-insiders-markdown."""
15
+
16
+ @property
17
+ def _template_env(self) -> Environment:
18
+ """Jinja2 template environment."""
19
+ template_path = Path(__file__).parent / 'templates'
20
+ return Environment(
21
+ loader=FileSystemLoader(str(template_path)),
22
+ autoescape=False,
23
+ )
24
+
25
+ def show(self) -> str:
26
+ """Render the datatype as markdown."""
27
+ # Get the label using title facet
28
+ label = self.render(
29
+ self.this,
30
+ as_datatype=DATATYPES.title,
31
+ )
32
+
33
+ # Get the comment/description
34
+ comment_rows = self.query(
35
+ """
36
+ SELECT ?comment WHERE {
37
+ $this rdfs:comment ?comment .
38
+ }
39
+ LIMIT 1
40
+ """,
41
+ this=self.this,
42
+ )
43
+ comment = str(comment_rows[0]['comment']) if comment_rows else None
44
+
45
+ # Get all types (rdf:type)
46
+ type_rows = self.query(
47
+ """
48
+ SELECT ?type WHERE {
49
+ $this rdf:type ?type .
50
+ }
51
+ """,
52
+ this=self.this,
53
+ )
54
+ types = [
55
+ {
56
+ 'uri': row['type'],
57
+ 'title': self.render(row['type'], as_datatype=DATATYPES.title),
58
+ }
59
+ for row in type_rows
60
+ ]
61
+
62
+ # Get all superclasses (rdfs:subClassOf)
63
+ superclass_rows = self.query(
64
+ """
65
+ SELECT ?superclass WHERE {
66
+ $this rdfs:subClassOf ?superclass .
67
+ }
68
+ """,
69
+ this=self.this,
70
+ )
71
+ superclasses = [
72
+ {
73
+ 'uri': row['superclass'],
74
+ 'title': self.render(row['superclass'], as_datatype=DATATYPES.title),
75
+ }
76
+ for row in superclass_rows
77
+ ]
78
+
79
+ template = self._template_env.get_template('datatype.jinja2.md')
80
+ return template.render(
81
+ label=label,
82
+ comment=comment,
83
+ types=types,
84
+ superclasses=superclasses,
85
+ )
86
+
@@ -0,0 +1,24 @@
1
+ # {{ label }}
2
+
3
+ <table>
4
+ <thead>
5
+ </thead>
6
+ <tbody>
7
+ {% if types %}
8
+ <tr>
9
+ <td>∈ Instance Of</td>
10
+ <td>{% for type in types %}<code><a href="{{ type.uri }}">{{ type.title }}</a></code>{% if not loop.last %}, {% endif %}{% endfor %}</td>
11
+ </tr>
12
+ {% endif %}
13
+ {% if superclasses %}
14
+ <tr>
15
+ <td>⊊ Subclass Of</td>
16
+ <td>{% for superclass in superclasses %}<code><a href="{{ superclass.uri }}">{{ superclass.title }}</a></code>{% if not loop.last %}, {% endif %}{% endfor %}</td>
17
+ </tr>
18
+ {% endif %}
19
+ </tbody>
20
+ </table>
21
+
22
+ {% if comment %}
23
+ {{ comment | safe }}
24
+ {% endif %}
iolanta/iolanta.py CHANGED
@@ -119,7 +119,7 @@ class Iolanta: # noqa: WPS214
119
119
  processor='sparqlspace',
120
120
  initBindings=kwargs,
121
121
  )
122
- except ParseException as err:
122
+ except SyntaxError as err:
123
123
  raise SPARQLParseException(
124
124
  error=err,
125
125
  query=query_text,
@@ -171,8 +171,9 @@ class Iolanta: # noqa: WPS214
171
171
  self.logger.error(f'{source} | {parser_not_found}')
172
172
  continue
173
173
  except YAMLLDError as yaml_ld_error:
174
- self.logger.error(f'{source} | {yaml_ld_error}')
175
- continue
174
+ # .add() only processes local files, so errors should be raised
175
+ self.logger.error(f'{source_file} | {yaml_ld_error}')
176
+ raise
176
177
  except ValueError as value_error:
177
178
  self.logger.error(f'{source} | {value_error}')
178
179
  continue
@@ -4,7 +4,7 @@
4
4
  foaf: https://xmlns.com/foaf/0.1/
5
5
  owl: https://www.w3.org/2002/07/owl#
6
6
  iolanta: https://iolanta.tech/
7
- rdfs: "https://www.w3.org/2000/01/rdf-schema#"
7
+ rdfs: "http://www.w3.org/2000/01/rdf-schema#"
8
8
  rdf: https://www.w3.org/1999/02/22-rdf-syntax-ns#
9
9
  dcterms: https://purl.org/dc/terms/
10
10
  dcam: https://purl.org/dc/dcam/
iolanta/models.py CHANGED
@@ -83,9 +83,6 @@ class TripleTemplate(NamedTuple):
83
83
 
84
84
 
85
85
  def _normalize_term(term: Node):
86
- if isinstance(term, URIRef) and term.startswith('http://'):
87
- return URIRef(re.sub('^http', 'https', term))
88
-
89
86
  return term
90
87
 
91
88
 
iolanta/namespaces.py CHANGED
@@ -20,11 +20,11 @@ class OWL(rdflib.OWL):
20
20
 
21
21
 
22
22
  class RDFS(rdflib.RDFS):
23
- _NS = rdflib.Namespace('https://www.w3.org/2000/01/rdf-schema#')
23
+ _NS = rdflib.Namespace('http://www.w3.org/2000/01/rdf-schema#')
24
24
 
25
25
 
26
26
  class RDF(rdflib.RDF):
27
- _NS = rdflib.Namespace('https://www.w3.org/1999/02/22-rdf-syntax-ns#')
27
+ _NS = rdflib.Namespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#')
28
28
 
29
29
 
30
30
  class DCTERMS(rdflib.DCTERMS):
iolanta/parse_quads.py CHANGED
@@ -13,8 +13,8 @@ from iolanta.models import Quad
13
13
  from iolanta.namespaces import IOLANTA, META
14
14
 
15
15
  NORMALIZE_TERMS_MAP = MappingProxyType({
16
- URIRef(_url := 'https://www.w3.org/2002/07/owl'): URIRef(f'{_url}#'),
17
- URIRef(_url := 'https://www.w3.org/2000/01/rdf-schema'): URIRef(f'{_url}#'),
16
+ URIRef(_url := 'http://www.w3.org/2002/07/owl'): URIRef(f'{_url}#'),
17
+ URIRef(_url := 'http://www.w3.org/2000/01/rdf-schema'): URIRef(f'{_url}#'),
18
18
  })
19
19
 
20
20
 
@@ -0,0 +1,10 @@
1
+ PREFIX wikibase: <http://wikiba.se/ontology#>
2
+
3
+ CONSTRUCT {
4
+ ?thing rdfs:label ?label .
5
+ }
6
+ WHERE {
7
+ ?entity
8
+ (wikibase:claim | wikibase:qualifier | wikibase:statementProperty | wikibase:statementValueNormalized) ?thing ;
9
+ rdfs:label ?label .
10
+ }
@@ -0,0 +1,27 @@
1
+ PREFIX wikibase: <http://wikiba.se/ontology#>
2
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX prov: <http://www.w3.org/ns/prov#>
4
+
5
+ CONSTRUCT {
6
+ ?statement rdfs:label ?label .
7
+ }
8
+ WHERE {
9
+ ?statement a wikibase:Statement .
10
+
11
+ # Find predicates from statement to values (excluding metadata predicates)
12
+ ?statement ?statementProp ?value .
13
+
14
+ FILTER(?statementProp != wikibase:rank)
15
+ FILTER(?statementProp != rdf:type)
16
+ FILTER(?statementProp != prov:wasDerivedFrom)
17
+ FILTER(?statementProp != iolanta:last-loaded-time)
18
+
19
+ # Handle entity values: get their label
20
+ {
21
+ ?value rdfs:label ?label .
22
+ } UNION {
23
+ # Handle literal values: use the literal directly
24
+ ?statement ?statementProp ?label .
25
+ FILTER(isLiteral(?label))
26
+ }
27
+ }
@@ -35,6 +35,7 @@ from iolanta.namespaces import ( # noqa: WPS235
35
35
  DCTERMS,
36
36
  FOAF,
37
37
  IOLANTA,
38
+ LOCAL,
38
39
  META,
39
40
  OWL,
40
41
  PROV,
@@ -46,6 +47,8 @@ from iolanta.parse_quads import NORMALIZE_TERMS_MAP, parse_quads
46
47
 
47
48
  REASONING_ENABLED = True
48
49
  OWL_REASONING_ENABLED = False
50
+
51
+ INFERENCE_DIR = Path(__file__).parent / 'inference'
49
52
  INDICES = [
50
53
  URIRef('https://iolanta.tech/visualizations/index.yaml'),
51
54
  ]
@@ -112,7 +115,7 @@ def _extract_from_mapping( # noqa: WPS213
112
115
  algebra: Mapping[str, Any],
113
116
  ) -> Iterable[URIRef | Variable]:
114
117
  match algebra.name:
115
- case 'SelectQuery' | 'AskQuery' | 'Project' | 'Distinct':
118
+ case 'SelectQuery' | 'AskQuery' | 'Project' | 'Distinct' | 'Slice':
116
119
  yield from extract_mentioned_urls(algebra['p'])
117
120
 
118
121
  case 'BGP':
@@ -203,9 +206,6 @@ def normalize_term(term: Node) -> Node:
203
206
  * A dirty hack;
204
207
  * Based on hard code.
205
208
  """
206
- if isinstance(term, URIRef) and term.startswith('http://'):
207
- term = URIRef(re.sub('^http', 'https', term))
208
-
209
209
  return NORMALIZE_TERMS_MAP.get(term, term)
210
210
 
211
211
 
@@ -263,6 +263,12 @@ def _extract_nanopublication_uris(
263
263
  match algebra.name:
264
264
  case 'SelectQuery' | 'AskQuery' | 'Project' | 'Distinct' | 'Graph':
265
265
  yield from _extract_nanopublication_uris(algebra['p'])
266
+ case 'ConstructQuery':
267
+ # CONSTRUCT queries don't have nanopublication URIs in bindings
268
+ return
269
+
270
+ case 'Slice':
271
+ yield from _extract_nanopublication_uris(algebra['p'])
266
272
 
267
273
  case 'BGP':
268
274
  for retractor, retracts, retractee in algebra['triples']:
@@ -404,64 +410,6 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
404
410
  self.graph.last_not_inferred_source = None
405
411
  self.graph._indices_loaded = False
406
412
 
407
- def _infer_with_sparql(self):
408
- """
409
- Infer triples with SPARQL rules.
410
-
411
- FIXME:
412
- * Code these rules into SHACL or some other RDF based syntax;
413
- * Make them available at iolanta.tech/visualizations/ and indexed.
414
- """
415
- inference = Path(__file__).parent / 'inference'
416
-
417
- file_names = {
418
- 'wikibase-claim.sparql': URIRef('local:inference-wikibase-claim'),
419
- 'wikibase-statement-property.sparql': URIRef(
420
- 'local:inference-statement-property',
421
- ),
422
- }
423
-
424
- for file_name, graph_name in file_names.items():
425
- start_time = time.time()
426
- self.graph.update(
427
- update_object=(inference / file_name).read_text(),
428
- )
429
- triple_count = len(self.graph.get_context(graph_name))
430
- duration = datetime.timedelta(seconds=time.time() - start_time)
431
- self.logger.info(
432
- f'{file_name}: {triple_count} triple(s), '
433
- f'inferred at {duration}',
434
- )
435
-
436
- def maybe_apply_inference(self):
437
- """Apply global OWL RL inference if necessary."""
438
- if not REASONING_ENABLED:
439
- return
440
-
441
- if self.graph.last_not_inferred_source is None:
442
- return
443
-
444
- with self.inference_lock:
445
- self._infer_with_sparql()
446
- self._infer_with_owl_rl()
447
- self.logger.info('Inference @ cyberspace: complete.')
448
-
449
- self.graph.last_not_inferred_source = None
450
-
451
- def _infer_with_owl_rl(self):
452
- if not OWL_REASONING_ENABLED:
453
- return
454
-
455
- reasoner = reasonable.PyReasoner()
456
- reasoner.from_graph(self.graph)
457
- inferred_triples = reasoner.reason()
458
- inference_graph_name = BNode('_:inference')
459
- inferred_quads = [
460
- (*triple, inference_graph_name)
461
- for triple in inferred_triples
462
- ]
463
- self.graph.addN(inferred_quads)
464
-
465
413
  def _maybe_load_indices(self):
466
414
  if not self.graph._indices_loaded:
467
415
  for index in INDICES:
@@ -486,7 +434,7 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
486
434
 
487
435
  initBindings = initBindings or {}
488
436
  initNs = initNs or {}
489
-
437
+
490
438
  if isinstance(strOrQuery, Query):
491
439
  query = strOrQuery
492
440
 
@@ -494,12 +442,14 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
494
442
  parse_tree = parseQuery(strOrQuery)
495
443
  query = translateQuery(parse_tree, base, initNs)
496
444
 
497
- self.load_retracting_nanopublications_by_query(
498
- query=query,
499
- bindings=initBindings,
500
- base=base,
501
- namespaces=initNs,
502
- )
445
+ # Only extract nanopublications from SELECT/ASK queries, not CONSTRUCT
446
+ if query.algebra.name != 'ConstructQuery':
447
+ self.load_retracting_nanopublications_by_query(
448
+ query=query,
449
+ bindings=initBindings,
450
+ base=base,
451
+ namespaces=initNs,
452
+ )
503
453
 
504
454
  query, urls = extract_mentioned_urls_from_query(
505
455
  query=query,
@@ -508,15 +458,24 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
508
458
  namespaces=initNs,
509
459
  )
510
460
 
461
+ # Filter out inference graph names (they're not URLs to load)
462
+ urls = {url for url in urls if not str(url).startswith('inference:')}
463
+
511
464
  for url in urls:
512
465
  try:
513
466
  self.load(url)
514
467
  except Exception as err:
515
468
  self.logger.exception(f'Failed to load {url}: {err}', url, err)
516
469
 
517
- NanopubQueryPlugin(graph=self.graph)(query, bindings=initBindings)
470
+ # Run inference if there's new data since last inference run
471
+ # (after URLs are loaded so inference can use the loaded data)
472
+ if self.graph.last_not_inferred_source is not None:
473
+ self.logger.debug(f'Running inference, last_not_inferred_source: {self.graph.last_not_inferred_source}')
474
+ self._run_inference()
475
+ else:
476
+ self.logger.debug('Skipping inference, last_not_inferred_source is None')
518
477
 
519
- self.maybe_apply_inference()
478
+ NanopubQueryPlugin(graph=self.graph)(query, bindings=initBindings)
520
479
 
521
480
  is_anything_loaded = True
522
481
  while is_anything_loaded:
@@ -531,6 +490,7 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
531
490
  return query_result
532
491
 
533
492
  for row in bindings:
493
+ break
534
494
  for _, maybe_iri in row.items():
535
495
  if (
536
496
  isinstance(maybe_iri, URIRef)
@@ -566,12 +526,10 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
566
526
 
567
527
  def _follow_is_visualized_with_links(self, uri: URIRef):
568
528
  """Follow `dcterms:isReferencedBy` links."""
569
- self.logger.info(f'Following links for {uri}…')
570
529
  triples = self.graph.triples((uri, DCTERMS.isReferencedBy, None))
571
530
  for _, _, visualization in triples:
572
531
  if isinstance(visualization, URIRef):
573
532
  self.load(visualization)
574
- self.logger.info('Links followed.')
575
533
 
576
534
  def load( # noqa: C901, WPS210, WPS212, WPS213, WPS231
577
535
  self,
@@ -611,8 +569,6 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
611
569
  source_uri = normalize_term(source)
612
570
  if self._is_loaded(source_uri):
613
571
  return Skipped()
614
- else:
615
- self.logger.info(f'{source_uri} is not loaded yet')
616
572
 
617
573
  # FIXME This is definitely inefficient. However, python-yaml-ld caches
618
574
  # the document, so the performance overhead is not super high.
@@ -718,8 +674,9 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
718
674
  for quad in quads
719
675
  })
720
676
  self.logger.info(
721
- f'{source} | loaded successfully into graphs: {into_graphs}',
677
+ f'{source} | loaded {len(quads)} triples into graphs: {into_graphs}',
722
678
  )
679
+
723
680
  return Loaded()
724
681
 
725
682
  def resolve_term(self, term: Node, bindings: dict[str, Node]):
@@ -732,6 +689,51 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
732
689
 
733
690
  return term
734
691
 
692
+ def _run_inference(self): # noqa: WPS231
693
+ """
694
+ Run inference queries from the inference directory.
695
+
696
+ For each SPARQL file in the inference directory:
697
+ 1. Truncate the named graph `local:inference-{filename}`
698
+ 2. Execute the CONSTRUCT query
699
+ 3. Insert the resulting triples into that graph
700
+ """
701
+ with self.inference_lock:
702
+ for inference_file in INFERENCE_DIR.glob('*.sparql'):
703
+ filename = inference_file.stem # filename without .sparql extension
704
+ inference_graph = URIRef(f'inference:{filename}')
705
+
706
+ # Truncate the inference graph
707
+ context = self.graph.get_context(inference_graph)
708
+ context.remove((None, None, None))
709
+
710
+ # Read and execute the CONSTRUCT query
711
+ query_text = inference_file.read_text()
712
+ result = self.graph.query(query_text)
713
+
714
+ # CONSTRUCT queries return a SPARQLResult with a graph attribute
715
+ result_graph = result.get('graph') if isinstance(result, dict) else result.graph
716
+ self.logger.debug(f'Inference {filename}: result_graph is {result_graph}, type: {type(result_graph)}')
717
+ if result_graph is not None:
718
+ inferred_quads = [
719
+ (s, p, o, inference_graph)
720
+ for s, p, o in result_graph
721
+ ]
722
+ self.logger.debug(f'Inference {filename}: generated {len(inferred_quads)} quads')
723
+
724
+ if inferred_quads:
725
+ self.graph.addN(inferred_quads)
726
+ self.logger.info(
727
+ 'Inference {filename}: added {count} triples',
728
+ filename=filename,
729
+ count=len(inferred_quads),
730
+ )
731
+ else:
732
+ self.logger.debug(f'Inference {filename}: result_graph is None')
733
+
734
+ # Clear the flag after running inference
735
+ self.graph.last_not_inferred_source = None
736
+
735
737
  def load_retracting_nanopublications_by_query( # noqa: WPS231
736
738
  self,
737
739
  query: Query,
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: iolanta
3
- Version: 2.1.6
3
+ Version: 2.1.7
4
4
  Summary: Semantic Web browser
5
5
  License: MIT
6
6
  Author: Anatoly Scherbakov
@@ -10,6 +10,7 @@ Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
13
14
  Provides-Extra: all
14
15
  Requires-Dist: boltons (>=24.0.0)
15
16
  Requires-Dist: classes (>=0.4.0)
@@ -33,7 +34,7 @@ Requires-Dist: rich (>=13.3.1)
33
34
  Requires-Dist: textual (>=0.83.0)
34
35
  Requires-Dist: typer (>=0.9.0)
35
36
  Requires-Dist: watchfiles (>=1.0.4)
36
- Requires-Dist: yaml-ld (>=1.1.14,<2.0.0)
37
+ Requires-Dist: yaml-ld (>=1.1.15)
37
38
  Requires-Dist: yarl (>=1.9.4)
38
39
  Description-Content-Type: text/markdown
39
40
 
@@ -11,12 +11,12 @@ iolanta/cli/models.py,sha256=cjbpowdzI4wAP0DUk3qoVHyimk6AZwlXi9CGmusZTuM,159
11
11
  iolanta/cli/pretty_print.py,sha256=M6E3TmhzA6JY5GeUVmDZLmOh5u70-393PVit4voFKDI,977
12
12
  iolanta/context.py,sha256=bZR-tbZIrDQ-Vby01PMDZ6ifxM-0YMK68RJvAsyqCTs,507
13
13
  iolanta/conversions.py,sha256=hbLwRF1bAbOxy17eMWLHhYksbdCWN-v4-0y0wn3XSSg,1185
14
- iolanta/data/context.yaml,sha256=LUBasiBKgQeGAYjYV_T5XvgPlrdzACeKaZwY_rKzjtI,1636
14
+ iolanta/data/context.yaml,sha256=26hmL8ZXARqftopKoREjwCPp5Y0cfE3DDUIUAsRmRds,1635
15
15
  iolanta/data/graph-triples.yamlld,sha256=rtn-HfbijaqbmjCrKv-2pVV_aaJhB_9_OqXA_yLznCs,209
16
- iolanta/data/iolanta.yaml,sha256=xubIFBNU02lmFXhgOSuyQwUcZD3xCqVfeVAZMvOxKbI,1433
17
- iolanta/data/textual-browser.yaml,sha256=nJbDS0B3G-emM9vCu2DIlWZBhzmWbO3zrWkt_Rmv5uA,3700
16
+ iolanta/data/iolanta.yaml,sha256=74c89yMeIgSwtes5IMVfOitisVUPsubfdNqKLCodo8w,1432
17
+ iolanta/data/textual-browser.yaml,sha256=sbfdKOoC7C7UXHPFKedF6k5v61pF3gB2dsLDUE0v5Pk,3506
18
18
  iolanta/declension/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
- iolanta/declension/data/declension.yamlld,sha256=fA1OptmhyIK7-mNy3fbK5G07OE4ueBW2x812b7VQkzA,975
19
+ iolanta/declension/data/declension.yamlld,sha256=D5bkBW-2SOevtdFM64f9ySccrb7aOwmSe13rqFYmcpA,974
20
20
  iolanta/declension/facet.py,sha256=7SsPACjeIGnONLhfjB4KBjqt-FRISVpZenshJzqC0A8,1349
21
21
  iolanta/declension/sparql/declension.sparql,sha256=T84bfCNDXodmFEH26S45DyOJHoWz3T4cC7hSwtAcFSw,185
22
22
  iolanta/ensure_is_context.py,sha256=9aok8asyEx7KPesOR28VBDb3Ch9kfc3eoCpQSJwj07U,717
@@ -46,6 +46,10 @@ iolanta/facets/html/default.py,sha256=Dmf_kYiL2M954iigyYsiWrMstwZ1nvxKetuR6aW3xY
46
46
  iolanta/facets/icon.py,sha256=Dubh9eCvb4kj-ppEJsTno_mn78og8YIRnDrmcefOsgs,495
47
47
  iolanta/facets/locator/sparql/get-query-to-facet.sparql,sha256=ZoXrclgZPy0FpPhVVMb6VnIXLIUgIc-Q7Pa5ySsNSSU,114
48
48
  iolanta/facets/locator.py,sha256=swDkDqo_N8GEPtkDRh-Tp7npyLuPUaZpZDHZPUc2Om4,9089
49
+ iolanta/facets/mkdocs_material_insiders_markdown/__init__.py,sha256=wV5PyNr_WT1KcLK-ANCYWaN9K2asPgRLZQ_rKqLmCDs,155
50
+ iolanta/facets/mkdocs_material_insiders_markdown/data/mkdocs_material_insiders_markdown.yamlld,sha256=_0GzmMAZ7TiBcdeTcWt74PnM0exTNkWeIeA3VMa5jS8,550
51
+ iolanta/facets/mkdocs_material_insiders_markdown/facet.py,sha256=EY-H4gR5YgiDVt2pFbhXDuuDlAdo43vuwOvfhqFuRr4,2504
52
+ iolanta/facets/mkdocs_material_insiders_markdown/templates/datatype.jinja2.md,sha256=k9GSdy27mAY3eRL899pk6ZCYr4ZpEY1EuM5RY-OApYM,551
49
53
  iolanta/facets/page_title.py,sha256=TwgZK2g_e5UoWYjKNgDzzkmq1EI3cY58680iC8N9kZI,1407
50
54
  iolanta/facets/qname.py,sha256=Z2wjDWV90Z4vuwLj31MSf5EBGTb0dxzjlKl-Iv4dPao,533
51
55
  iolanta/facets/textual_browser/__init__.py,sha256=sKgDvXOwib9n9d63kdtKCEv26-FoL0VN6zxDmfcheZ8,104
@@ -102,9 +106,9 @@ iolanta/facets/title/sparql/title.sparql,sha256=VKHeE9NvV6sFgVGvsLQD9z__J4APj8TD
102
106
  iolanta/facets/wikibase_statement_title/__init__.py,sha256=_yk1akxgSJOiUBJIc8QGrD2vovvmx_iw_vJDuv1rD7M,91
103
107
  iolanta/facets/wikibase_statement_title/facets.py,sha256=gNRqiwOTMxyyHYvb_vIrfd-4ipb8wfyJ4GgPcQdyy9E,726
104
108
  iolanta/facets/wikibase_statement_title/sparql/statement-title.sparql,sha256=n07DQWxKqB5c3CA4kacq2HSN0R0dLgnMnLP1AxMo5YA,320
105
- iolanta/iolanta.py,sha256=ONIjejjidXfRIe9pVjCxEyI5Jo1yZdn-XGLuo73tcSw,11074
109
+ iolanta/iolanta.py,sha256=na44xAHdUanmC6bGr9SXtfAcwGVOVm6j6NA7eKHLh4I,11153
106
110
  iolanta/labeled_triple_set/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
107
- iolanta/labeled_triple_set/data/labeled_triple_set.yamlld,sha256=RqVhaXTIDA2Fip32E1TlH4cn_sDLC7H-NGZ5XpK-hio,1015
111
+ iolanta/labeled_triple_set/data/labeled_triple_set.yamlld,sha256=fdIDoWZew2GTOgOcs3FByVFd7nz9Hkt-aUbZLRlwbIE,1014
108
112
  iolanta/labeled_triple_set/labeled_triple_set.py,sha256=o4IgvTvPd0mzBtpgHYd4n1xpujYdAvWBr6gIYwp5vnA,4061
109
113
  iolanta/labeled_triple_set/sparql/triples.sparql,sha256=VsCmYN5AX7jSIiFm-SqLcRcOvUVj8yyZI4PSzKROtQw,82
110
114
  iolanta/mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -118,10 +122,10 @@ iolanta/mermaid/models.py,sha256=mlhtkqChpF-5z4Nt3s8a0j64cuT34BUKxLIYNS2RcIA,438
118
122
  iolanta/mermaid/sparql/ask-has-triples.sparql,sha256=mOYJ_rutEG_15PKTCHSv2GqzbkAawIn1U2kjkIr_Me0,41
119
123
  iolanta/mermaid/sparql/graph.sparql,sha256=mDGf05od3CUFhzI6rcqt5ZMVy-gSKDu-WxmV_zpIsVI,62
120
124
  iolanta/mermaid/sparql/subgraphs.sparql,sha256=VuoOYr_ZtKXXRrBpAEJek0mBRzR9EV-KnKENgAbkzCs,71
121
- iolanta/models.py,sha256=M-1dTxPwjTyUgQ4VCOiH6Q7ltNJiDPG0l1XQH430Omo,3250
122
- iolanta/namespaces.py,sha256=H_qYyxCqbIGMOczpT9vUBHumTW9QJ-Y6qXHbJgFwFP8,1210
125
+ iolanta/models.py,sha256=2VrJGQE1YXbbVB1K5McCXe2CLAlzOUhA8FvbRI10nCc,3131
126
+ iolanta/namespaces.py,sha256=NiCDzcvJHpnSH0kvEE94xyt0X9R-yqjkI_TEgj_3Pd4,1208
123
127
  iolanta/node_to_qname.py,sha256=a82_qpgT87cbekY_76tTkl4Z-6Rz6am4UGIQChUf9Y0,794
124
- iolanta/parse_quads.py,sha256=nKUGS_OVpCA6PFA5rOd6Qa5ik_eQhCL-Mlv1zDXk_Co,4541
128
+ iolanta/parse_quads.py,sha256=X-3hQAFzRD9U8KCuZMQTVOAapJR4OHkPoRbgJYiVbnk,4539
125
129
  iolanta/plugin.py,sha256=MSxpuOIx93AgBahfS8bYh31MEgcwtUSQhj4Js7fgdSI,1096
126
130
  iolanta/query_result.py,sha256=VLLBkewUEymtzfB0jeIeRE3Np6pAgo959RPgNsEmiq8,1545
127
131
  iolanta/reformat_blank_nodes.py,sha256=MAVcXusUioKzAoTEHAMume5Gt9vBEpxJGrngqFzmkJI,712
@@ -132,14 +136,14 @@ iolanta/resolvers/pypi.py,sha256=BJA7PGPaFFIxisCp-1-pjWZYNTDRVA5am5Nn8O2WddM,349
132
136
  iolanta/resolvers/python_import.py,sha256=hFs2Fi7BDjdKllgrGJhTaqjfcT7Vaj0j1b45CJt21B0,522
133
137
  iolanta/sparqlspace/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
134
138
  iolanta/sparqlspace/cli.py,sha256=pb6q03lzrU8OaZ4A3QAQEmaFYcQ_-sHUrPhRs6GE88w,1590
135
- iolanta/sparqlspace/inference/wikibase-claim.sparql,sha256=JSawj3VTc9ZPoU9mvh1w1AMYb3cWyZ3x1rEYWUsKZ6A,209
136
- iolanta/sparqlspace/inference/wikibase-statement-property.sparql,sha256=SkSHZZlxWVDwBM3aLo0Q7hLuOj9BsIQnXtcuAuwaxqU,240
137
- iolanta/sparqlspace/processor.py,sha256=IkBPsijinHvryp0OnlE2OW6HLFbfFGhZuAQ-ytQTg8w,24149
139
+ iolanta/sparqlspace/inference/wikidata-prop-label.sparql,sha256=JYLAs28Z3a77cMcv44aZplwwrdqB-yshZn1dDZmRFAU,250
140
+ iolanta/sparqlspace/inference/wikidata-statement-label.sparql,sha256=_Dp9jKCpCp2pLk0uacNUhUvvQ2Hov-WiMFprtuYTRyY,759
141
+ iolanta/sparqlspace/processor.py,sha256=nEmVz7QjYtP33Gr8x7GVrX3DlDSGIRJJornnNCCEu9s,25041
138
142
  iolanta/sparqlspace/sparqlspace.py,sha256=Y8_ZPXwuGEXbEes6XQjaQWA2Zv9y8SWxMPDFdqVBGFo,796
139
143
  iolanta/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
140
144
  iolanta/widgets/description.py,sha256=98Qd3FwT9r8sYqKjl9ZEptaVX9jJ2ULWf0uy3j52p5o,800
141
145
  iolanta/widgets/mixin.py,sha256=nDRCOc-gizCf1a5DAcYs4hW8eZEd6pHBPFsfm0ncv7E,251
142
- iolanta-2.1.6.dist-info/METADATA,sha256=4v_M-GuBzoo1gqKMzlr3S9M9oy83i-RfA4U-qfcGHCg,2272
143
- iolanta-2.1.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
144
- iolanta-2.1.6.dist-info/entry_points.txt,sha256=TK9UQRFPXLEoOJOfyf9ywntoXHXSzkZyHV--lZ10eW0,1678
145
- iolanta-2.1.6.dist-info/RECORD,,
146
+ iolanta-2.1.7.dist-info/METADATA,sha256=nfkUewER-LxGg0zSrV4rNBGG3yisglFBCsZ1PDtbZjw,2316
147
+ iolanta-2.1.7.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
148
+ iolanta-2.1.7.dist-info/entry_points.txt,sha256=Vu0W4D6H74HsTICvD8CDB1wYs6XNSyu55EZVXMo4H84,1718
149
+ iolanta-2.1.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.3
2
+ Generator: poetry-core 2.2.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -8,6 +8,7 @@ boolean=iolanta.facets.generic:BoolLiteral
8
8
  icon=iolanta.facets.icon:IconFacet
9
9
  labeled-triple-set=iolanta.labeled_triple_set.labeled_triple_set:LabeledTripleSet
10
10
  mermaid-graph=iolanta.mermaid.facet:Mermaid
11
+ mkdocs-material-insiders-markdown-datatype=iolanta.facets.mkdocs_material_insiders_markdown:MkDocsMaterialInsidersMarkdownFacet
11
12
  qname=iolanta.facets.qname:QNameFacet
12
13
  rich-declension-table=iolanta.declension.facet:RichDeclensionTable
13
14
  textual-browser=iolanta.facets.textual_browser:TextualBrowserFacet
@@ -25,7 +26,6 @@ textual-property-pairs=iolanta.facets.textual_property_pairs_table:TextualProper
25
26
  textual-provenance=iolanta.facets.textual_provenance:TextualProvenanceFacet
26
27
  title=iolanta.facets.title:TitleFacet
27
28
  title-foaf-person=iolanta.facets.foaf_person_title:FOAFPersonTitle
28
- wikibase-statement-title=iolanta.facets.wikibase_statement_title:WikibaseStatementTitle
29
29
 
30
30
  [iolanta.plugins]
31
31
  base=iolanta:IolantaBase
@@ -1,9 +0,0 @@
1
- INSERT {
2
- GRAPH <local:inference-wikibase-claim> {
3
- ?prop <https://schema.org/name> ?name .
4
- }
5
- }
6
- WHERE {
7
- ?entity <https://wikiba.se/ontology#claim> ?prop .
8
- ?entity <https://schema.org/name> ?name .
9
- }
@@ -1,9 +0,0 @@
1
- INSERT {
2
- GRAPH <local:inference-wikibase-statement-property> {
3
- ?statement <https://schema.org/name> ?name .
4
- }
5
- }
6
- WHERE {
7
- ?prop <https://wikiba.se/ontology#statementProperty> ?statement .
8
- ?prop <https://schema.org/name> ?name .
9
- }