iolanta 2.1.4__py3-none-any.whl → 2.1.6__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/cli/main.py +44 -24
- iolanta/facets/locator/sparql/get-query-to-facet.sparql +5 -0
- iolanta/facets/locator.py +4 -7
- iolanta/facets/textual_browser/page_switcher.py +1 -1
- iolanta/facets/textual_graphs/__init__.py +6 -0
- iolanta/facets/textual_graphs/data/textual_graphs.yamlld +23 -0
- iolanta/facets/textual_graphs/facets.py +138 -0
- iolanta/facets/textual_graphs/sparql/graphs.sparql +5 -0
- iolanta/mcp/__init__.py +0 -0
- iolanta/mcp/cli.py +39 -0
- iolanta/mcp/prompts/nanopublication_assertion_authoring_rules.md +63 -0
- iolanta/mcp/prompts/rules.md +83 -0
- iolanta/mermaid/facet.py +0 -3
- iolanta/mermaid/mermaid.yamlld +7 -24
- iolanta/mermaid/models.py +4 -2
- iolanta/mermaid/sparql/ask-has-triples.sparql +3 -0
- iolanta/sparqlspace/processor.py +2 -2
- {iolanta-2.1.4.dist-info → iolanta-2.1.6.dist-info}/METADATA +4 -2
- {iolanta-2.1.4.dist-info → iolanta-2.1.6.dist-info}/RECORD +21 -11
- {iolanta-2.1.4.dist-info → iolanta-2.1.6.dist-info}/entry_points.txt +2 -0
- {iolanta-2.1.4.dist-info → iolanta-2.1.6.dist-info}/WHEEL +0 -0
iolanta/cli/main.py
CHANGED
|
@@ -11,7 +11,7 @@ from rdflib import Literal, URIRef
|
|
|
11
11
|
from rich.console import Console
|
|
12
12
|
from rich.markdown import Markdown
|
|
13
13
|
from rich.table import Table
|
|
14
|
-
from typer import Argument, Exit, Option, Typer
|
|
14
|
+
from typer import Argument, Exit, Option, Typer, Context
|
|
15
15
|
from yarl import URL
|
|
16
16
|
|
|
17
17
|
from iolanta.cli.models import LogLevel
|
|
@@ -24,9 +24,7 @@ DEFAULT_LANGUAGE = locale.getlocale()[0].split('_')[0]
|
|
|
24
24
|
console = Console()
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
app = Typer(
|
|
28
|
-
no_args_is_help=True,
|
|
29
|
-
)
|
|
27
|
+
app = Typer(no_args_is_help=True)
|
|
30
28
|
|
|
31
29
|
|
|
32
30
|
def string_to_node(name: str) -> NotLiteralNode:
|
|
@@ -52,19 +50,10 @@ def decode_datatype(datatype: str) -> URIRef:
|
|
|
52
50
|
return URIRef(f'https://iolanta.tech/datatypes/{datatype}')
|
|
53
51
|
|
|
54
52
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
str, Option(
|
|
60
|
-
'--as',
|
|
61
|
-
),
|
|
62
|
-
] = 'https://iolanta.tech/cli/interactive',
|
|
63
|
-
language: Annotated[
|
|
64
|
-
str, Option(
|
|
65
|
-
help='Data language to prefer.',
|
|
66
|
-
),
|
|
67
|
-
] = DEFAULT_LANGUAGE,
|
|
53
|
+
def render_and_return(
|
|
54
|
+
url: str,
|
|
55
|
+
as_datatype: str,
|
|
56
|
+
language: str = DEFAULT_LANGUAGE,
|
|
68
57
|
log_level: LogLevel = LogLevel.ERROR,
|
|
69
58
|
):
|
|
70
59
|
"""Render a given URL."""
|
|
@@ -124,13 +113,38 @@ def render_command( # noqa: WPS231, WPS238, WPS210, C901
|
|
|
124
113
|
project_root=path,
|
|
125
114
|
)
|
|
126
115
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
116
|
+
return iolanta.render(
|
|
117
|
+
node=URIRef(node),
|
|
118
|
+
as_datatype=decode_datatype(as_datatype),
|
|
119
|
+
)
|
|
120
|
+
|
|
132
121
|
|
|
122
|
+
@app.command(name='render')
|
|
123
|
+
def render_command( # noqa: WPS231, WPS238, WPS210, C901
|
|
124
|
+
url: Annotated[str, Argument()],
|
|
125
|
+
as_datatype: Annotated[
|
|
126
|
+
str, Option(
|
|
127
|
+
'--as',
|
|
128
|
+
),
|
|
129
|
+
] = 'https://iolanta.tech/cli/interactive',
|
|
130
|
+
language: Annotated[
|
|
131
|
+
str, Option(
|
|
132
|
+
help='Data language to prefer.',
|
|
133
|
+
),
|
|
134
|
+
] = DEFAULT_LANGUAGE,
|
|
135
|
+
log_level: LogLevel = LogLevel.ERROR,
|
|
136
|
+
):
|
|
137
|
+
"""Render a given URL."""
|
|
138
|
+
try:
|
|
139
|
+
renderable = render_and_return(url, as_datatype, language, log_level)
|
|
133
140
|
except DocumentedError as documented_error:
|
|
141
|
+
level = {
|
|
142
|
+
LogLevel.DEBUG: logging.DEBUG,
|
|
143
|
+
LogLevel.INFO: logging.INFO,
|
|
144
|
+
LogLevel.WARNING: logging.WARNING,
|
|
145
|
+
LogLevel.ERROR: logging.ERROR,
|
|
146
|
+
}[log_level]
|
|
147
|
+
|
|
134
148
|
if level in {logging.DEBUG, logging.INFO}:
|
|
135
149
|
raise
|
|
136
150
|
|
|
@@ -143,12 +157,18 @@ def render_command( # noqa: WPS231, WPS238, WPS210, C901
|
|
|
143
157
|
raise Exit(1)
|
|
144
158
|
|
|
145
159
|
except Exception as err:
|
|
146
|
-
|
|
160
|
+
level = {
|
|
161
|
+
LogLevel.DEBUG: logging.DEBUG,
|
|
162
|
+
LogLevel.INFO: logging.INFO,
|
|
163
|
+
LogLevel.WARNING: logging.WARNING,
|
|
164
|
+
LogLevel.ERROR: logging.ERROR,
|
|
165
|
+
}[log_level]
|
|
166
|
+
|
|
167
|
+
if level in {logging.DEBUG, logging.INFO}:
|
|
147
168
|
raise
|
|
148
169
|
|
|
149
170
|
console.print(str(err))
|
|
150
171
|
raise Exit(1)
|
|
151
|
-
|
|
152
172
|
else:
|
|
153
173
|
# FIXME: An intermediary Literal can be used to dispatch rendering.
|
|
154
174
|
match renderable:
|
iolanta/facets/locator.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from dataclasses import dataclass
|
|
2
2
|
from functools import cached_property
|
|
3
3
|
from graphlib import TopologicalSorter
|
|
4
|
+
from pathlib import Path
|
|
4
5
|
from typing import Iterable, List, TypedDict
|
|
5
6
|
|
|
6
7
|
import funcy
|
|
@@ -18,13 +19,9 @@ class FoundRow(TypedDict):
|
|
|
18
19
|
output_datatype: NotLiteralNode
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
GET_QUERY_TO_FACET =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
iolanta:matches ?match ;
|
|
25
|
-
iolanta:outputs $as_datatype .
|
|
26
|
-
}
|
|
27
|
-
"""
|
|
22
|
+
GET_QUERY_TO_FACET = (
|
|
23
|
+
Path(__file__).parent / 'locator' / 'sparql' / 'get-query-to-facet.sparql'
|
|
24
|
+
).read_text()
|
|
28
25
|
|
|
29
26
|
|
|
30
27
|
def reorder_rows_by_facet_preferences( # noqa: WPS214, WPS210
|
|
@@ -323,7 +323,7 @@ class DevConsole(RichLog):
|
|
|
323
323
|
|
|
324
324
|
def __init__(self):
|
|
325
325
|
"""Set default props for console."""
|
|
326
|
-
super().__init__(highlight=
|
|
326
|
+
super().__init__(highlight=False, markup=False, id='console')
|
|
327
327
|
|
|
328
328
|
def action_close(self):
|
|
329
329
|
"""Close the dev console."""
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"@context":
|
|
2
|
+
"@import": https://json-ld.org/contexts/dollar-convenience.jsonld
|
|
3
|
+
iolanta: https://iolanta.tech/
|
|
4
|
+
rdfs: http://www.w3.org/2000/01/rdf-schema#
|
|
5
|
+
rdfg: http://www.w3.org/2009/rdfg#
|
|
6
|
+
|
|
7
|
+
$: rdfs:label
|
|
8
|
+
iolanta:is-preferred-over:
|
|
9
|
+
"@type": "@id"
|
|
10
|
+
|
|
11
|
+
iolanta:outputs:
|
|
12
|
+
"@type": "@id"
|
|
13
|
+
|
|
14
|
+
$id: rdfg:Graph
|
|
15
|
+
iolanta:facet:
|
|
16
|
+
$id: pkg:pypi/iolanta#textual-graphs
|
|
17
|
+
$: Named Graphs
|
|
18
|
+
|
|
19
|
+
iolanta:outputs: https://iolanta.tech/cli/textual
|
|
20
|
+
|
|
21
|
+
iolanta:is-preferred-over:
|
|
22
|
+
- pkg:pypi/iolanta#textual-properties
|
|
23
|
+
- pkg:pypi/iolanta#textual-graph-triples
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
from collections import defaultdict
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
from typing import Iterable, NamedTuple
|
|
4
|
+
|
|
5
|
+
import funcy
|
|
6
|
+
from rdflib import Literal, Node
|
|
7
|
+
from textual.containers import Vertical
|
|
8
|
+
from textual.coordinate import Coordinate
|
|
9
|
+
from textual.widgets import DataTable
|
|
10
|
+
|
|
11
|
+
from iolanta.facets.facet import Facet
|
|
12
|
+
from iolanta.facets.page_title import PageTitle
|
|
13
|
+
from iolanta.models import NotLiteralNode
|
|
14
|
+
from iolanta.namespaces import DATATYPES
|
|
15
|
+
from iolanta.widgets.mixin import IolantaWidgetMixin
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class GraphRow(NamedTuple):
|
|
19
|
+
"""A row in the graphs table."""
|
|
20
|
+
|
|
21
|
+
graph: NotLiteralNode
|
|
22
|
+
count: int
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class GraphsTable(IolantaWidgetMixin, DataTable):
|
|
26
|
+
"""Render graphs as a table with graph URI and triple count."""
|
|
27
|
+
|
|
28
|
+
BINDINGS = [
|
|
29
|
+
('enter', 'goto', 'Goto'),
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
def __init__(self, rows: Iterable[GraphRow]):
|
|
33
|
+
"""Construct."""
|
|
34
|
+
super().__init__(show_header=True, cell_padding=1)
|
|
35
|
+
self.graph_rows = list(rows)
|
|
36
|
+
|
|
37
|
+
def render_human_readable_cells(self):
|
|
38
|
+
"""Replace the cells with their human readable titles."""
|
|
39
|
+
terms_and_coordinates = sorted(
|
|
40
|
+
self.node_to_coordinates.items(),
|
|
41
|
+
key=lambda node_and_coordinates_pair: len(
|
|
42
|
+
node_and_coordinates_pair[1],
|
|
43
|
+
),
|
|
44
|
+
reverse=True,
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
for term, coordinates in terms_and_coordinates:
|
|
48
|
+
title = str(self.iolanta.render(term, as_datatype=DATATYPES.title))
|
|
49
|
+
for coordinate in coordinates:
|
|
50
|
+
self.app.call_from_thread(
|
|
51
|
+
self.update_cell_at,
|
|
52
|
+
coordinate,
|
|
53
|
+
value=title,
|
|
54
|
+
update_width=False,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
@funcy.cached_property
|
|
58
|
+
@funcy.post_processing(dict)
|
|
59
|
+
def coordinate_to_node(self):
|
|
60
|
+
"""Return a mapping of coordinates to their corresponding nodes."""
|
|
61
|
+
for row_number, (graph, _count) in enumerate(self.graph_rows):
|
|
62
|
+
yield Coordinate(row_number, 0), graph
|
|
63
|
+
|
|
64
|
+
@funcy.cached_property
|
|
65
|
+
def node_to_coordinates(self) -> defaultdict[Node, list[Coordinate]]:
|
|
66
|
+
"""Map node to coordinates where it appears."""
|
|
67
|
+
node_to_coordinate = [
|
|
68
|
+
(node, coordinate)
|
|
69
|
+
for coordinate, node in self.coordinate_to_node.items()
|
|
70
|
+
]
|
|
71
|
+
return funcy.group_values(node_to_coordinate)
|
|
72
|
+
|
|
73
|
+
def format_as_loading(self, node: Node) -> str:
|
|
74
|
+
"""Intermediate version of a value while it is loading."""
|
|
75
|
+
if isinstance(node, Literal):
|
|
76
|
+
node_text = f'⌛ {node}'
|
|
77
|
+
else:
|
|
78
|
+
node_text = self.iolanta.node_as_qname(node)
|
|
79
|
+
node_text = f'⌛ {node_text}'
|
|
80
|
+
|
|
81
|
+
return node_text
|
|
82
|
+
|
|
83
|
+
def on_mount(self):
|
|
84
|
+
"""Fill the table and start rendering."""
|
|
85
|
+
self.add_columns('Graph', 'Triples Count')
|
|
86
|
+
self.cell_padding = 1
|
|
87
|
+
|
|
88
|
+
for graph, count in self.graph_rows:
|
|
89
|
+
self.add_row(
|
|
90
|
+
self.format_as_loading(graph),
|
|
91
|
+
str(count),
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
self.run_worker(
|
|
95
|
+
self.render_human_readable_cells,
|
|
96
|
+
thread=True,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
def action_goto(self):
|
|
100
|
+
"""Navigate to the selected graph."""
|
|
101
|
+
if self.cursor_coordinate:
|
|
102
|
+
node = self.coordinate_to_node.get(self.cursor_coordinate)
|
|
103
|
+
if node is not None:
|
|
104
|
+
self.app.action_goto(node)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
class GraphsBody(Vertical):
|
|
108
|
+
"""Container for graphs table."""
|
|
109
|
+
|
|
110
|
+
DEFAULT_CSS = """
|
|
111
|
+
GraphsBody {
|
|
112
|
+
height: auto;
|
|
113
|
+
max-height: 100%;
|
|
114
|
+
}
|
|
115
|
+
"""
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class Graphs(Facet):
|
|
119
|
+
"""Render named graphs as a table."""
|
|
120
|
+
|
|
121
|
+
META = Path(__file__).parent / 'data' / 'textual_graphs.yamlld'
|
|
122
|
+
|
|
123
|
+
def show(self):
|
|
124
|
+
"""Construct the table."""
|
|
125
|
+
rows = self.stored_query('graphs.sparql')
|
|
126
|
+
|
|
127
|
+
return GraphsBody(
|
|
128
|
+
PageTitle(self.this),
|
|
129
|
+
GraphsTable(
|
|
130
|
+
[
|
|
131
|
+
GraphRow(
|
|
132
|
+
graph=row['graph'],
|
|
133
|
+
count=int(row['count'].value),
|
|
134
|
+
)
|
|
135
|
+
for row in rows
|
|
136
|
+
],
|
|
137
|
+
),
|
|
138
|
+
)
|
iolanta/mcp/__init__.py
ADDED
|
File without changes
|
iolanta/mcp/cli.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from typing import Annotated
|
|
2
|
+
from fastmcp import FastMCP
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
from iolanta.cli.main import render_and_return
|
|
6
|
+
|
|
7
|
+
mcp = FastMCP("Iolanta MCP Server")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@mcp.tool()
|
|
11
|
+
def render_uri(
|
|
12
|
+
uri: Annotated[str, 'URL, or file system path, to render'],
|
|
13
|
+
as_format: Annotated[str, 'Format to render as. Examples: `labeled-triple-set`, `mermaid`']
|
|
14
|
+
) -> str:
|
|
15
|
+
"""Render a URI."""
|
|
16
|
+
result = render_and_return(uri, as_format)
|
|
17
|
+
return str(result)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@mcp.prompt(description="How to author Linked Data with Iolanta")
|
|
21
|
+
def ld_authoring_rules() -> str:
|
|
22
|
+
"""How to author Linked Data with Iolanta."""
|
|
23
|
+
rules_path = Path(__file__).parent / 'prompts' / 'rules.md'
|
|
24
|
+
return rules_path.read_text()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@mcp.prompt(description="How to author nanopublication assertions with Iolanta")
|
|
28
|
+
def nanopublication_assertion_authoring_rules() -> str:
|
|
29
|
+
"""How to author nanopublication assertions with Iolanta."""
|
|
30
|
+
rules_path = Path(__file__).parent / 'prompts' / 'nanopublication_assertion_authoring_rules.md'
|
|
31
|
+
return rules_path.read_text()
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def app():
|
|
35
|
+
mcp.run()
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if __name__ == "__main__":
|
|
39
|
+
app()
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# How to author Nanopublication Assertions with Iolanta
|
|
2
|
+
|
|
3
|
+
## What are Nanopublications?
|
|
4
|
+
|
|
5
|
+
Nanopublications are a special type of Linked Data that contain structured knowledge statements with three main components:
|
|
6
|
+
|
|
7
|
+
1. **Assertion** - The core knowledge claim or statement
|
|
8
|
+
2. **Provenance** - Information about how the assertion was derived (sources, methods, contributors)
|
|
9
|
+
3. **Publication Info** - Metadata about the nanopublication itself (author, creation date, etc.)
|
|
10
|
+
|
|
11
|
+
Nanopublications are cryptographically signed and published in the decentralized **Nanopublication Registry**, making them:
|
|
12
|
+
- Irrevocably attributed to the author
|
|
13
|
+
- Protected from tampering
|
|
14
|
+
- Referenceable by unique IDs
|
|
15
|
+
- Machine readable and reusable
|
|
16
|
+
- Decentralized and persistent
|
|
17
|
+
|
|
18
|
+
## Assertion-Only Workflow
|
|
19
|
+
|
|
20
|
+
**NP00.** Nanopublication assertion graphs must also satisfy the general rules for Linked Data authoring and workflow. That is provided in the MCP prompt named `ld_authoring_rules`.
|
|
21
|
+
|
|
22
|
+
**NP01.** We focus only on writing the **assertion graph** of the nanopublication.
|
|
23
|
+
|
|
24
|
+
**NP02.** Follow the standard YAML-LD authoring rules (R00-R23) for creating the assertion.
|
|
25
|
+
|
|
26
|
+
**NP03.** The assertion should express a single, clear knowledge claim that can stand alone.
|
|
27
|
+
|
|
28
|
+
**NP04.** Use proper Linked Data vocabularies and resolvable URIs for all entities and relationships.
|
|
29
|
+
|
|
30
|
+
**NP05.** After the assertion graph is ready, follow this workflow:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# Expand the YAML-LD to JSON-LD
|
|
34
|
+
pyld expand assertion.yamlld > expanded.jsonld
|
|
35
|
+
|
|
36
|
+
# Create nanopublication from the assertion
|
|
37
|
+
np create from-assertion expanded.jsonld > nanopublication.trig
|
|
38
|
+
|
|
39
|
+
# Publish the nanopublication (when ready)
|
|
40
|
+
np publish nanopublication.trig
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**NP06.** The `pyld expand` command converts YAML-LD to expanded JSON-LD format.
|
|
44
|
+
|
|
45
|
+
**NP07.** The `np create from-assertion` command automatically generates the provenance and publication info components.
|
|
46
|
+
|
|
47
|
+
**NP08.** The `np publish` command cryptographically signs and publishes the nanopublication to the registry.
|
|
48
|
+
|
|
49
|
+
**NP09.** Use the Iolanta MCP `render_uri` tool to validate the assertion before proceeding with the workflow.
|
|
50
|
+
|
|
51
|
+
**NP10.** Save Mermaid visualizations of the assertion for documentation purposes.
|
|
52
|
+
|
|
53
|
+
## Best Practices for Assertions
|
|
54
|
+
|
|
55
|
+
**NP11.** Keep assertions focused on a single, verifiable claim.
|
|
56
|
+
|
|
57
|
+
**NP12.** Use canonical URIs from established knowledge bases (DBpedia, Wikidata, etc.).
|
|
58
|
+
|
|
59
|
+
**NP13.** Include sufficient context and metadata to make the assertion meaningful.
|
|
60
|
+
|
|
61
|
+
**NP14.** Ensure the assertion can be understood independently of external context.
|
|
62
|
+
|
|
63
|
+
**NP15.** Use standard vocabularies and well-established ontologies for relationships.
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# How to author Linked Data with Iolanta
|
|
2
|
+
|
|
3
|
+
**R00.** Follow this YAML-LD authoring workflow:
|
|
4
|
+
- Draft YAML-LD from user text
|
|
5
|
+
- Use the Iolanta MCP `render_uri` tool with `as_format: labeled-triple-set` to validate and get feedback
|
|
6
|
+
- Address the feedback, correct the YAML-LD document appropriately
|
|
7
|
+
- **After each change to the YAML-LD file, re-run the validation to check for new feedback**
|
|
8
|
+
|
|
9
|
+
**R01.** Acceptance Criteria:
|
|
10
|
+
|
|
11
|
+
- The document fits the original statement the user wanted to express;
|
|
12
|
+
- No negative feedback is received.
|
|
13
|
+
|
|
14
|
+
**R02.** Use YAML-LD format, which is JSON-LD in YAML syntax, for writing Linked Data.
|
|
15
|
+
|
|
16
|
+
**R03.** Always quote the @ character in YAML since it's reserved. Use `"@id":` instead of `@id:`.
|
|
17
|
+
|
|
18
|
+
**R04.** Prefer YAML-LD Convenience Context which maps @-keywords to $-keywords that don't need quoting: `"@type"` → `$type`, `"@id"` → `$id`, `"@graph"` → `$graph`.
|
|
19
|
+
|
|
20
|
+
**R05.** Use the dollar-convenience context with `@import` syntax instead of array syntax. This provides cleaner, more readable YAML-LD documents.
|
|
21
|
+
|
|
22
|
+
Example:
|
|
23
|
+
```yaml
|
|
24
|
+
"@context":
|
|
25
|
+
"@import": "https://json-ld.org/contexts/dollar-convenience.jsonld"
|
|
26
|
+
|
|
27
|
+
schema: "https://schema.org/"
|
|
28
|
+
wd: "https://www.wikidata.org/entity/"
|
|
29
|
+
|
|
30
|
+
author:
|
|
31
|
+
"@id": "https://schema.org/author"
|
|
32
|
+
"@type": "@id"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Instead of:
|
|
36
|
+
```yaml
|
|
37
|
+
"@context":
|
|
38
|
+
- "https://json-ld.org/contexts/dollar-convenience.jsonld"
|
|
39
|
+
- schema: "https://schema.org/"
|
|
40
|
+
- wd: "https://www.wikidata.org/entity/"
|
|
41
|
+
- author:
|
|
42
|
+
"@id": "https://schema.org/author"
|
|
43
|
+
"@type": "@id"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**R06.** Reduce quoting when not required by YAML syntax rules.
|
|
47
|
+
|
|
48
|
+
**R07.** Do not use mock URLs like `https://example.org`. Use resolvable URLs that preferably point to Linked Data.
|
|
49
|
+
|
|
50
|
+
**R08.** Use URIs that convey meaning and are renderable with Linked Data visualization tools. Search for appropriate URIs from sources like DBPedia or Wikidata.
|
|
51
|
+
|
|
52
|
+
**R09.** Use the Iolanta MCP `render_uri` tool with `as_format: mermaid` to generate Mermaid graph visualizations of Linked Data. If the user asks, you can save them to `.mmd` files for preview and documentation purposes.
|
|
53
|
+
|
|
54
|
+
**R10.** For language tags, use YAML-LD syntax: `rdfs:label: { $value: "text", $language: "lang" }` instead of Turtle syntax `"text"@lang`.
|
|
55
|
+
|
|
56
|
+
**R11.** Do not attach labels to external URIs that are expected to return Linked Data. Iolanta will fetch those URIs and render labels from the fetched data.
|
|
57
|
+
|
|
58
|
+
**R12.** Use `"@type": "@id"` in the context to coerce properties to IRIs instead of using `$id` wrappers in the document body.
|
|
59
|
+
|
|
60
|
+
**R13.** For software packages, use `schema:SoftwareApplication` as the main type rather than `codemeta:SoftwareSourceCode`.
|
|
61
|
+
|
|
62
|
+
**R14.** Use Wikidata entities for programming languages (e.g., `https://www.wikidata.org/entity/Q28865` for Python) instead of string literals.
|
|
63
|
+
|
|
64
|
+
**R15.** Use proper ORCID URIs for authors (e.g., `https://orcid.org/0009-0001-8740-4213`) and coerce them to IRIs in the context.
|
|
65
|
+
|
|
66
|
+
**R16.** For tools that provide both library and CLI functionality, classify as `schema:Tool` with `schema:applicationSubCategory: Command-line tool`.
|
|
67
|
+
|
|
68
|
+
**R17.** Use real, resolvable repository URLs (e.g., `https://github.com/iolanta-tech/python-yaml-ld`) instead of placeholder URLs.
|
|
69
|
+
|
|
70
|
+
**R18.** Include comprehensive metadata: name, description, author, license, programming language, version, repository links, and application category.
|
|
71
|
+
|
|
72
|
+
**R19.** Use standard vocabularies: schema.org, RDFS, RDF, DCTerms, FOAF, and CodeMeta when appropriate.
|
|
73
|
+
|
|
74
|
+
**R20.** Validate Linked Data using the Iolanta MCP `render_uri` tool with `as_format: labeled-triple-set` to check for URL-as-literal issues and proper IRI handling.
|
|
75
|
+
|
|
76
|
+
**R21.** Do not add `rdfs:label` to external URIs that are expected to return Linked Data. If a URI does not exist or cannot be resolved, do not mask this fact by adding labels. Instead, use a different, existing URI or document the issue with a comment.
|
|
77
|
+
|
|
78
|
+
**R22.** Define URI coercion in the context using `"@type": "@id"` rather than using `$id` wrappers in the document body. This keeps the document body clean and readable while ensuring proper URI handling.
|
|
79
|
+
|
|
80
|
+
**R23.** When defining local shortcuts for URIs in the context, use dashed-case (e.g., `appears-in`, `named-after`) instead of camelCase (e.g., `appearsIn`, `namedAfter`). This improves readability and follows common YAML conventions.
|
|
81
|
+
|
|
82
|
+
**R24.** Do not rely upon `owl:sameAs` or `schema:sameAs` to express identity relationships. This necessitates OWL inference at the side of the reader, which is performance-taxing and tends to create conflicts. Instead, use direct URIs for entities without relying on sameAs statements for identity.
|
|
83
|
+
|
iolanta/mermaid/facet.py
CHANGED
iolanta/mermaid/mermaid.yamlld
CHANGED
|
@@ -1,42 +1,25 @@
|
|
|
1
1
|
"@context":
|
|
2
2
|
"@import": https://json-ld.org/contexts/dollar-convenience.jsonld
|
|
3
|
-
vann: https://purl.org/vocab/vann/
|
|
4
|
-
foaf: https://xmlns.com/foaf/0.1/
|
|
5
|
-
owl: https://www.w3.org/2002/07/owl#
|
|
6
3
|
iolanta: https://iolanta.tech/
|
|
7
|
-
rdfs:
|
|
8
|
-
rdf: https://www.w3.org/1999/02/22-rdf-syntax-ns#
|
|
9
|
-
dcterms: https://purl.org/dc/terms/
|
|
10
|
-
dcam: https://purl.org/dc/dcam/
|
|
11
|
-
|
|
12
|
-
iolanta:outputs:
|
|
13
|
-
"@type": "@id"
|
|
14
|
-
|
|
15
|
-
iolanta:when-no-facet-found:
|
|
16
|
-
"@type": "@id"
|
|
4
|
+
rdfs: http://www.w3.org/2000/01/rdf-schema#
|
|
17
5
|
|
|
18
6
|
$: rdfs:label
|
|
19
7
|
→:
|
|
20
8
|
"@type": "@id"
|
|
21
9
|
"@id": iolanta:outputs
|
|
22
10
|
|
|
23
|
-
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
26
|
-
|
|
27
|
-
⪯:
|
|
28
|
-
"@type": "@id"
|
|
29
|
-
"@id": iolanta:is-preferred-over
|
|
30
|
-
|
|
31
|
-
↦: iolanta:matches
|
|
32
|
-
iolanta:hasDefaultFacet:
|
|
33
|
-
"@type": "@id"
|
|
11
|
+
↦:
|
|
12
|
+
"@id": iolanta:matches
|
|
13
|
+
"@type": iolanta:SPARQLText
|
|
34
14
|
|
|
35
15
|
$id: pkg:pypi/iolanta#mermaid-graph
|
|
36
16
|
$: Mermaid Graph
|
|
17
|
+
|
|
37
18
|
→:
|
|
38
19
|
$id: https://iolanta.tech/datatypes/mermaid
|
|
39
20
|
$: Mermaid
|
|
21
|
+
$type: iolanta:OutputDatatype
|
|
22
|
+
|
|
40
23
|
↦:
|
|
41
24
|
- ASK WHERE { GRAPH $this { ?s ?p ?o } }
|
|
42
25
|
- ASK WHERE { $this iolanta:has-sub-graph ?subgraph }
|
iolanta/mermaid/models.py
CHANGED
|
@@ -60,7 +60,9 @@ class MermaidLiteral(Documented, BaseModel, arbitrary_types_allowed=True, frozen
|
|
|
60
60
|
|
|
61
61
|
@property
|
|
62
62
|
def id(self) -> str:
|
|
63
|
-
|
|
63
|
+
# Use the lexical form of the literal, not rdflib's .value (which may be empty for typed literals),
|
|
64
|
+
# to ensure different texts get distinct node IDs in Mermaid.
|
|
65
|
+
value_hash = hashlib.md5(str(self.literal).encode()).hexdigest()
|
|
64
66
|
return f'Literal-{value_hash}'
|
|
65
67
|
|
|
66
68
|
|
|
@@ -142,7 +144,7 @@ class Diagram(Documented, BaseModel):
|
|
|
142
144
|
"""
|
|
143
145
|
graph {self.direction}
|
|
144
146
|
{self.formatted_body}
|
|
145
|
-
classDef predicate fill:
|
|
147
|
+
classDef predicate fill:transparent,stroke:transparent,stroke-width:0px;
|
|
146
148
|
"""
|
|
147
149
|
|
|
148
150
|
children: list[MermaidScalar | MermaidSubgraph]
|
iolanta/sparqlspace/processor.py
CHANGED
|
@@ -159,7 +159,7 @@ def _extract_from_mapping( # noqa: WPS213
|
|
|
159
159
|
|
|
160
160
|
case unknown_name:
|
|
161
161
|
formatted_keys = ', '.join(algebra.keys())
|
|
162
|
-
loguru.logger.
|
|
162
|
+
loguru.logger.info(
|
|
163
163
|
'Unknown SPARQL expression '
|
|
164
164
|
f'{unknown_name}({formatted_keys}): {algebra}',
|
|
165
165
|
)
|
|
@@ -512,7 +512,7 @@ class GlobalSPARQLProcessor(Processor): # noqa: WPS338, WPS214
|
|
|
512
512
|
try:
|
|
513
513
|
self.load(url)
|
|
514
514
|
except Exception as err:
|
|
515
|
-
self.logger.
|
|
515
|
+
self.logger.exception(f'Failed to load {url}: {err}', url, err)
|
|
516
516
|
|
|
517
517
|
NanopubQueryPlugin(graph=self.graph)(query, bindings=initBindings)
|
|
518
518
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: iolanta
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.6
|
|
4
4
|
Summary: Semantic Web browser
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Anatoly Scherbakov
|
|
@@ -17,9 +17,11 @@ Requires-Dist: deepmerge (>=0.1.1)
|
|
|
17
17
|
Requires-Dist: diskcache (>=5.6.3)
|
|
18
18
|
Requires-Dist: documented (>=0.1.1)
|
|
19
19
|
Requires-Dist: dominate (>=2.6.0)
|
|
20
|
+
Requires-Dist: fastmcp (>=2.12.4,<3.0.0)
|
|
20
21
|
Requires-Dist: funcy (>=2.0)
|
|
21
22
|
Requires-Dist: loguru (>=0.7.3)
|
|
22
23
|
Requires-Dist: more-itertools (>=9.0.0)
|
|
24
|
+
Requires-Dist: nanopub (>=2.1.0,<3.0.0)
|
|
23
25
|
Requires-Dist: owlrl (>=6.0.2)
|
|
24
26
|
Requires-Dist: oxrdflib (>=0.4.0)
|
|
25
27
|
Requires-Dist: packageurl-python (>=0.17.5)
|
|
@@ -31,7 +33,7 @@ Requires-Dist: rich (>=13.3.1)
|
|
|
31
33
|
Requires-Dist: textual (>=0.83.0)
|
|
32
34
|
Requires-Dist: typer (>=0.9.0)
|
|
33
35
|
Requires-Dist: watchfiles (>=1.0.4)
|
|
34
|
-
Requires-Dist: yaml-ld (>=1.1.
|
|
36
|
+
Requires-Dist: yaml-ld (>=1.1.14,<2.0.0)
|
|
35
37
|
Requires-Dist: yarl (>=1.9.4)
|
|
36
38
|
Description-Content-Type: text/markdown
|
|
37
39
|
|
|
@@ -6,7 +6,7 @@ iolanta/cli/formatters/choose.py,sha256=LWzsO_9IBSSgYNIyLlItkp8TNvpW3v6YCQ8-6kbI
|
|
|
6
6
|
iolanta/cli/formatters/csv.py,sha256=ceJ_DTz0beqeK-d6FPBQqqjXrziEfF0FRSLoGZCt_fs,760
|
|
7
7
|
iolanta/cli/formatters/json.py,sha256=Og5B9UrSM_0NWqW5Afpsy6WH8ZfYgPMVXYvT3i-43Jc,748
|
|
8
8
|
iolanta/cli/formatters/pretty.py,sha256=IypZRAr2vNqcXFY6NOIc75mpyfpFWh56aCBlOPDDieQ,2901
|
|
9
|
-
iolanta/cli/main.py,sha256=
|
|
9
|
+
iolanta/cli/main.py,sha256=_fJ9XAwANaYvwZ9ige4PafaB4Mx-InYibEXXExUFrZ8,4524
|
|
10
10
|
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
|
|
@@ -44,7 +44,8 @@ iolanta/facets/html/base.py,sha256=JcpK7YM_QQE9vwH5w5F_EgPkPv-XRzOrcZlVSy4LhIs,1
|
|
|
44
44
|
iolanta/facets/html/code_literal.py,sha256=hdbC304zoa9ar9Lp-dH7w079GxVGlJo8U98SOe6U82g,397
|
|
45
45
|
iolanta/facets/html/default.py,sha256=Dmf_kYiL2M954iigyYsiWrMstwZ1nvxKetuR6aW3xYY,647
|
|
46
46
|
iolanta/facets/icon.py,sha256=Dubh9eCvb4kj-ppEJsTno_mn78og8YIRnDrmcefOsgs,495
|
|
47
|
-
iolanta/facets/locator.
|
|
47
|
+
iolanta/facets/locator/sparql/get-query-to-facet.sparql,sha256=ZoXrclgZPy0FpPhVVMb6VnIXLIUgIc-Q7Pa5ySsNSSU,114
|
|
48
|
+
iolanta/facets/locator.py,sha256=swDkDqo_N8GEPtkDRh-Tp7npyLuPUaZpZDHZPUc2Om4,9089
|
|
48
49
|
iolanta/facets/page_title.py,sha256=TwgZK2g_e5UoWYjKNgDzzkmq1EI3cY58680iC8N9kZI,1407
|
|
49
50
|
iolanta/facets/qname.py,sha256=Z2wjDWV90Z4vuwLj31MSf5EBGTb0dxzjlKl-Iv4dPao,533
|
|
50
51
|
iolanta/facets/textual_browser/__init__.py,sha256=sKgDvXOwib9n9d63kdtKCEv26-FoL0VN6zxDmfcheZ8,104
|
|
@@ -55,7 +56,7 @@ iolanta/facets/textual_browser/home.py,sha256=GfDD1G2HiwdLkPkNdcYRqVIxDl5tWH9few
|
|
|
55
56
|
iolanta/facets/textual_browser/location.py,sha256=w0La8bVTpJiVo1_hFTDQeIUdDdqfhYnoihuZW-f130c,205
|
|
56
57
|
iolanta/facets/textual_browser/models.py,sha256=DqTBjhkkTt5mNwqr4DzNbPSqzV-QtNqfKj7wpn6T3ao,173
|
|
57
58
|
iolanta/facets/textual_browser/page.py,sha256=NkcQ5rSKZRbp63C8ozgsR_iVhcKHGv_SytUCQyGa7ss,786
|
|
58
|
-
iolanta/facets/textual_browser/page_switcher.py,sha256=
|
|
59
|
+
iolanta/facets/textual_browser/page_switcher.py,sha256=ryymmjN_q7Ukk-PY-Gh2XJozdBgkloHhIDPpW2KxWnI,9794
|
|
59
60
|
iolanta/facets/textual_class/__init__.py,sha256=tiL0p-3JspGcBRj4qa3rmoBFAuadk71l2ja2lJN6CEs,75
|
|
60
61
|
iolanta/facets/textual_class/facets.py,sha256=pz7NkT4_5wgMH0NIKxOoURQDk-qhl022OQWgbmtrC8w,6003
|
|
61
62
|
iolanta/facets/textual_class/sparql/instances.sparql,sha256=v0rHyr0Ha-ioZ2ssv0ytqeO8-Qt1xnX9FKfwSstttzI,230
|
|
@@ -73,6 +74,10 @@ iolanta/facets/textual_graph/__init__.py,sha256=DWd2gljzL8SiyYKQdBH78HouF1EMqgCH
|
|
|
73
74
|
iolanta/facets/textual_graph/facets.py,sha256=ed6zt7DnAlwWkOB2D3MDQrtKB3tNiegPpZbRKIoz5Zg,876
|
|
74
75
|
iolanta/facets/textual_graph/sparql/triples.sparql,sha256=5rFVGcvZzEHZj2opQQp0YlxJLpEdl-r1RjkPwo8j7t0,145
|
|
75
76
|
iolanta/facets/textual_graph_triples.py,sha256=-Z3aKOMsWjprvU9563Z8OwaHz8KchHN_dxhKslliywo,3865
|
|
77
|
+
iolanta/facets/textual_graphs/__init__.py,sha256=w-m8SVtjFBn2ipQaO4rqbAIXqa3TQiYRatJuqtPdd0U,116
|
|
78
|
+
iolanta/facets/textual_graphs/data/textual_graphs.yamlld,sha256=pj3CRUEzgfYx0r-UY4qguz9rMYCyrNguu0kCUg7cPQM,561
|
|
79
|
+
iolanta/facets/textual_graphs/facets.py,sha256=U7nlrt2IMSCMBi0ZIrOhN53DH7b-pMgAHNbFg2pw208,4094
|
|
80
|
+
iolanta/facets/textual_graphs/sparql/graphs.sparql,sha256=4QxRD5BDB9uURpBXITPgpEk3FwCClAmDJdQ55vvmbfw,135
|
|
76
81
|
iolanta/facets/textual_link/__init__.py,sha256=ShlMaq2nrpinGZFutjGNKaZQhGKQGOz_VUQzUqq3U7o,95
|
|
77
82
|
iolanta/facets/textual_link/facet.py,sha256=l4gbNoJrZpp3qUAyn5AfXHRj_GdMxnjqZ14GPYhJWHk,659
|
|
78
83
|
iolanta/facets/textual_nanopublication/__init__.py,sha256=ZYYw08MZbIiTpX4xm8AJ3eJnu9GgdOeuRDVibBDOtZc,114
|
|
@@ -102,10 +107,15 @@ iolanta/labeled_triple_set/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
102
107
|
iolanta/labeled_triple_set/data/labeled_triple_set.yamlld,sha256=RqVhaXTIDA2Fip32E1TlH4cn_sDLC7H-NGZ5XpK-hio,1015
|
|
103
108
|
iolanta/labeled_triple_set/labeled_triple_set.py,sha256=o4IgvTvPd0mzBtpgHYd4n1xpujYdAvWBr6gIYwp5vnA,4061
|
|
104
109
|
iolanta/labeled_triple_set/sparql/triples.sparql,sha256=VsCmYN5AX7jSIiFm-SqLcRcOvUVj8yyZI4PSzKROtQw,82
|
|
110
|
+
iolanta/mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
111
|
+
iolanta/mcp/cli.py,sha256=vWlcvyzB54efTtFEZ7VEfwuePhOqQo0_kRplz3syaqM,1114
|
|
112
|
+
iolanta/mcp/prompts/nanopublication_assertion_authoring_rules.md,sha256=Z5YL9YwcLHCqA4zQK2ziSQYgyR4SlhUO9LV_zHGf0JQ,2643
|
|
113
|
+
iolanta/mcp/prompts/rules.md,sha256=LddpoNfUACfvWBNJ_ArAyJfP2zlQstlXS2QA6GCl9QI,4651
|
|
105
114
|
iolanta/mermaid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
106
|
-
iolanta/mermaid/facet.py,sha256=
|
|
107
|
-
iolanta/mermaid/mermaid.yamlld,sha256=
|
|
108
|
-
iolanta/mermaid/models.py,sha256=
|
|
115
|
+
iolanta/mermaid/facet.py,sha256=8mLOBrzlY84jiWhtJNY5BkXPDpRhL2OB1LUwwwNS1X0,4065
|
|
116
|
+
iolanta/mermaid/mermaid.yamlld,sha256=G_8lqNfs6S7pz9koDC8xAaic4EaHsYnFLgexDVyMuCU,552
|
|
117
|
+
iolanta/mermaid/models.py,sha256=mlhtkqChpF-5z4Nt3s8a0j64cuT34BUKxLIYNS2RcIA,4383
|
|
118
|
+
iolanta/mermaid/sparql/ask-has-triples.sparql,sha256=mOYJ_rutEG_15PKTCHSv2GqzbkAawIn1U2kjkIr_Me0,41
|
|
109
119
|
iolanta/mermaid/sparql/graph.sparql,sha256=mDGf05od3CUFhzI6rcqt5ZMVy-gSKDu-WxmV_zpIsVI,62
|
|
110
120
|
iolanta/mermaid/sparql/subgraphs.sparql,sha256=VuoOYr_ZtKXXRrBpAEJek0mBRzR9EV-KnKENgAbkzCs,71
|
|
111
121
|
iolanta/models.py,sha256=M-1dTxPwjTyUgQ4VCOiH6Q7ltNJiDPG0l1XQH430Omo,3250
|
|
@@ -124,12 +134,12 @@ iolanta/sparqlspace/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
124
134
|
iolanta/sparqlspace/cli.py,sha256=pb6q03lzrU8OaZ4A3QAQEmaFYcQ_-sHUrPhRs6GE88w,1590
|
|
125
135
|
iolanta/sparqlspace/inference/wikibase-claim.sparql,sha256=JSawj3VTc9ZPoU9mvh1w1AMYb3cWyZ3x1rEYWUsKZ6A,209
|
|
126
136
|
iolanta/sparqlspace/inference/wikibase-statement-property.sparql,sha256=SkSHZZlxWVDwBM3aLo0Q7hLuOj9BsIQnXtcuAuwaxqU,240
|
|
127
|
-
iolanta/sparqlspace/processor.py,sha256=
|
|
137
|
+
iolanta/sparqlspace/processor.py,sha256=IkBPsijinHvryp0OnlE2OW6HLFbfFGhZuAQ-ytQTg8w,24149
|
|
128
138
|
iolanta/sparqlspace/sparqlspace.py,sha256=Y8_ZPXwuGEXbEes6XQjaQWA2Zv9y8SWxMPDFdqVBGFo,796
|
|
129
139
|
iolanta/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
130
140
|
iolanta/widgets/description.py,sha256=98Qd3FwT9r8sYqKjl9ZEptaVX9jJ2ULWf0uy3j52p5o,800
|
|
131
141
|
iolanta/widgets/mixin.py,sha256=nDRCOc-gizCf1a5DAcYs4hW8eZEd6pHBPFsfm0ncv7E,251
|
|
132
|
-
iolanta-2.1.
|
|
133
|
-
iolanta-2.1.
|
|
134
|
-
iolanta-2.1.
|
|
135
|
-
iolanta-2.1.
|
|
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,,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[console_scripts]
|
|
2
2
|
iolanta=iolanta.cli:app
|
|
3
|
+
iolanta-mcp=iolanta.mcp.cli:app
|
|
3
4
|
sparqlspace=iolanta.sparqlspace.cli:app
|
|
4
5
|
|
|
5
6
|
[iolanta.facets]
|
|
@@ -13,6 +14,7 @@ textual-browser=iolanta.facets.textual_browser:TextualBrowserFacet
|
|
|
13
14
|
textual-class=iolanta.facets.textual_class:Class
|
|
14
15
|
textual-graph=iolanta.facets.textual_graph:GraphFacet
|
|
15
16
|
textual-graph-triples=iolanta.facets.textual_graph_triples:GraphTriplesFacet
|
|
17
|
+
textual-graphs=iolanta.facets.textual_graphs:Graphs
|
|
16
18
|
textual-inverse-properties=iolanta.facets.textual_default:InverseProperties
|
|
17
19
|
textual-link=iolanta.facets.textual_link:TextualLinkFacet
|
|
18
20
|
textual-nanopublication=iolanta.facets.textual_nanopublication:NanopublicationFacet
|
|
File without changes
|