iolanta 1.2.2__tar.gz → 1.2.4__tar.gz

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.
Files changed (135) hide show
  1. {iolanta-1.2.2 → iolanta-1.2.4}/PKG-INFO +1 -1
  2. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cyberspace/processor.py +6 -6
  3. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_ontology/facets.py +2 -2
  4. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/iolanta.py +6 -6
  5. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/node_to_qname.py +4 -0
  6. {iolanta-1.2.2 → iolanta-1.2.4}/pyproject.toml +1 -1
  7. {iolanta-1.2.2 → iolanta-1.2.4}/README.md +0 -0
  8. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/__init__.py +0 -0
  9. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/base_plugin.py +0 -0
  10. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cli/__init__.py +0 -0
  11. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cli/formatters/__init__.py +0 -0
  12. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cli/formatters/choose.py +0 -0
  13. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cli/formatters/csv.py +0 -0
  14. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cli/formatters/json.py +0 -0
  15. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cli/formatters/pretty.py +0 -0
  16. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cli/main.py +0 -0
  17. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cli/models.py +0 -0
  18. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cli/pretty_print.py +0 -0
  19. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/context.py +0 -0
  20. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/conversions.py +0 -0
  21. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cyberspace/__init__.py +0 -0
  22. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cyberspace/inference/wikibase-claim.sparql +0 -0
  23. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/cyberspace/inference/wikibase-statement-property.sparql +0 -0
  24. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/data/cli.yaml +0 -0
  25. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/data/context.yaml +0 -0
  26. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/data/foaf-meta.yaml +0 -0
  27. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/data/html.yaml +0 -0
  28. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/data/iolanta.yaml +0 -0
  29. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/data/ontologies-meta.yaml +0 -0
  30. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/data/textual-browser.yaml +0 -0
  31. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/ensure_is_context.py +0 -0
  32. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/entry_points.py +0 -0
  33. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/errors.py +0 -0
  34. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/__init__.py +0 -0
  35. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/cli/__init__.py +0 -0
  36. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/cli/base.py +0 -0
  37. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/cli/default.py +0 -0
  38. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/cli/record.py +0 -0
  39. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/cli/sparql/link.sparql +0 -0
  40. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/cli/sparql/record.sparql +0 -0
  41. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/errors.py +0 -0
  42. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/facet.py +0 -0
  43. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/foaf_person_title/__init__.py +0 -0
  44. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/foaf_person_title/facet.py +0 -0
  45. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/foaf_person_title/sparql/names.sparql +0 -0
  46. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/generic/__init__.py +0 -0
  47. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/generic/bool_literal.py +0 -0
  48. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/generic/date_literal.py +0 -0
  49. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/generic/default.py +0 -0
  50. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/generic/sparql/default.sparql +0 -0
  51. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/html/__init__.py +0 -0
  52. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/html/base.py +0 -0
  53. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/html/code_literal.py +0 -0
  54. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/html/default.py +0 -0
  55. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/icon.py +0 -0
  56. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/locator.py +0 -0
  57. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/page_title.py +0 -0
  58. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/qname.py +0 -0
  59. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_browser/__init__.py +0 -0
  60. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_browser/app.py +0 -0
  61. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_browser/facet.py +0 -0
  62. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_browser/history.py +0 -0
  63. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_browser/home.py +0 -0
  64. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_browser/location.py +0 -0
  65. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_browser/models.py +0 -0
  66. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_browser/page.py +0 -0
  67. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_browser/page_switcher.py +0 -0
  68. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_class/__init__.py +0 -0
  69. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_class/facets.py +0 -0
  70. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_class/sparql/instances.sparql +0 -0
  71. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_default/__init__.py +0 -0
  72. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_default/facets.py +0 -0
  73. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_default/sparql/inverse-properties.sparql +0 -0
  74. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_default/sparql/label.sparql +0 -0
  75. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_default/sparql/nodes-for-property.sparql +0 -0
  76. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_default/sparql/properties.sparql +0 -0
  77. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_default/tcss/default.tcss +0 -0
  78. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_default/templates/default.md +0 -0
  79. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_default/triple_uri_ref.py +0 -0
  80. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_default/widgets.py +0 -0
  81. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_graph/__init__.py +0 -0
  82. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_graph/facets.py +0 -0
  83. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_graph/sparql/triples.sparql +0 -0
  84. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_graph_triples.py +0 -0
  85. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_link/__init__.py +0 -0
  86. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_link/facet.py +0 -0
  87. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_nanopublication/__init__.py +0 -0
  88. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_nanopublication/facet.py +0 -0
  89. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_nanopublication/models.py +0 -0
  90. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_nanopublication/nanopublication_widget.py +0 -0
  91. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_nanopublication/term_list_widget.py +0 -0
  92. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_nanopublication/term_widget.py +0 -0
  93. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_ontology/__init__.py +0 -0
  94. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_ontology/sparql/terms.sparql +0 -0
  95. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_ontology/sparql/visualization-vocab.sparql +0 -0
  96. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_provenance/__init__.py +0 -0
  97. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_provenance/facets.py +0 -0
  98. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_provenance/sparql/graphs.sparql +0 -0
  99. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/textual_provenance/sparql/triples.sparql +0 -0
  100. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/title/__init__.py +0 -0
  101. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/title/facets.py +0 -0
  102. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/title/sparql/title.sparql +0 -0
  103. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/wikibase_statement_title/__init__.py +0 -0
  104. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/wikibase_statement_title/facets.py +0 -0
  105. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/facets/wikibase_statement_title/sparql/statement-title.sparql +0 -0
  106. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/loaders/__init__.py +0 -0
  107. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/loaders/base.py +0 -0
  108. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/loaders/data_type_choice.py +0 -0
  109. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/loaders/dict_loader.py +0 -0
  110. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/loaders/errors.py +0 -0
  111. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/loaders/http.py +0 -0
  112. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/loaders/local_directory.py +0 -0
  113. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/loaders/local_file.py +0 -0
  114. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/loaders/scheme_choice.py +0 -0
  115. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/models.py +0 -0
  116. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/namespaces.py +0 -0
  117. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/parse_quads.py +0 -0
  118. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/parsers/__init__.py +0 -0
  119. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/parsers/base.py +0 -0
  120. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/parsers/dict_parser.py +0 -0
  121. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/parsers/errors.py +0 -0
  122. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/parsers/json.py +0 -0
  123. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/parsers/markdown.py +0 -0
  124. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/parsers/yaml.py +0 -0
  125. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/plugin.py +0 -0
  126. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/reformat_blank_nodes.py +0 -0
  127. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/resolvers/__init__.py +0 -0
  128. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/resolvers/base.py +0 -0
  129. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/resolvers/python_import.py +0 -0
  130. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/shortcuts.py +0 -0
  131. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/stack.py +0 -0
  132. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/widgets/__init__.py +0 -0
  133. {iolanta-1.2.2 → iolanta-1.2.4}/iolanta/widgets/mixin.py +0 -0
  134. {iolanta-1.2.2 → iolanta-1.2.4}/ldflex/__init__.py +0 -0
  135. {iolanta-1.2.2 → iolanta-1.2.4}/ldflex/ldflex.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iolanta
3
- Version: 1.2.2
3
+ Version: 1.2.4
4
4
  Summary: Semantic Web browser
5
5
  License: MIT
6
6
  Author: Anatoly Scherbakov
@@ -257,11 +257,11 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
257
257
  self.graph.update(
258
258
  update_object=(inference / file_name).read_text(),
259
259
  )
260
+ triple_count = len(self.graph.get_context(graph_name))
261
+ duration = datetime.timedelta(seconds=time.time() - start_time)
260
262
  self.logger.info(
261
- '%s: %s triple(s), inferred at %s',
262
- file_name,
263
- len(self.graph.get_context(graph_name)),
264
- datetime.timedelta(seconds=time.time() - start_time),
263
+ f'{file_name}: {triple_count} triple(s), '
264
+ f'inferred at {duration}',
265
265
  )
266
266
 
267
267
  def maybe_apply_inference(self):
@@ -401,7 +401,7 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
401
401
  try:
402
402
  _resolved_source = yaml_ld.load_document(source)['documentUrl']
403
403
  except NotFound as not_found:
404
- self.logger.info('%s | 404 Not Found', not_found.path)
404
+ self.logger.info(f'{not_found.path} | 404 Not Found')
405
405
  namespaces = [RDF, RDFS, OWL, FOAF, DC, VANN]
406
406
 
407
407
  for namespace in namespaces:
@@ -561,7 +561,7 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
561
561
  ),
562
562
  )
563
563
 
564
- self.logger.info('%s | loaded successfully.', source)
564
+ self.logger.info(f'{source} | loaded successfully.')
565
565
  return Loaded()
566
566
 
567
567
  def resolve_term(self, term: Node, bindings: dict[str, Node]):
@@ -76,7 +76,7 @@ class OntologyFacet(Facet[Widget]):
76
76
  URIRef('https://iolanta.tech/visualizations/index.yaml'),
77
77
  as_datatype=DATATYPES.title,
78
78
  )
79
- logger.info('Index Retrieved: %s', index_title)
79
+ self.logger.info('Index Retrieved: %s', index_title)
80
80
 
81
81
  vocabs = funcy.lpluck(
82
82
  'vocab',
@@ -88,7 +88,7 @@ class OntologyFacet(Facet[Widget]):
88
88
  vocab,
89
89
  as_datatype=DATATYPES.title,
90
90
  )
91
- logger.info(
91
+ self.logger.info(
92
92
  'Visualization vocabulary retrieved: %s',
93
93
  vocab_title,
94
94
  )
@@ -168,7 +168,7 @@ class Iolanta: # noqa: WPS214
168
168
  FIXME:
169
169
  * Maybe implement context.json/context.yaml files support.
170
170
  """
171
- self.logger.info('Adding to graph: %s', source)
171
+ self.logger.info(f'Adding to graph: {source}')
172
172
  self.sources_added_not_yet_inferred.append(source)
173
173
 
174
174
  if not isinstance(source, Path):
@@ -188,16 +188,16 @@ class Iolanta: # noqa: WPS214
188
188
  )
189
189
  continue
190
190
  except ParserNotFound as parser_not_found:
191
- self.logger.info('%s | %s', source, str(parser_not_found))
191
+ self.logger.info(f'{source} | {parser_not_found}')
192
192
  continue
193
193
  except YAMLLDError as yaml_ld_error:
194
- self.logger.info('%s | %s', source, str(yaml_ld_error))
194
+ self.logger.info(f'{source} | {yaml_ld_error}')
195
195
  continue
196
196
  except ValueError as value_error:
197
- self.logger.info('%s | %s', source, str(value_error))
197
+ self.logger.info(f'{source} | {value_error}')
198
198
  continue
199
199
 
200
- self.logger.info('%s is loaded.', source_file)
200
+ self.logger.info(f'{source_file} is loaded.')
201
201
 
202
202
  graph = path_to_iri(source_file)
203
203
  try:
@@ -216,7 +216,7 @@ class Iolanta: # noqa: WPS214
216
216
  )
217
217
 
218
218
  if not quads:
219
- self.logger.warning('%s | No data found', source_file)
219
+ self.logger.warning(f'{source_file} | No data found')
220
220
  continue
221
221
 
222
222
  quad_tuples = [
@@ -1,9 +1,13 @@
1
+ import logging
2
+
1
3
  from classes import typeclass
2
4
  from rdflib import Graph, URIRef
3
5
  from rdflib.term import Node
4
6
 
5
7
  from iolanta.models import ComputedQName
6
8
 
9
+ logger = logging.getLogger(__name__)
10
+
7
11
 
8
12
  @typeclass
9
13
  def node_to_qname(node: Node, graph: Graph):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "iolanta"
3
- version = "1.2.2"
3
+ version = "1.2.4"
4
4
  description = "Semantic Web browser"
5
5
  authors = ["Anatoly Scherbakov <altaisoft@gmail.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes