Skip to content

Commit 03cfee3

Browse files
namedgraphclaude
andcommitted
Prefix Generate* LDH ops with ldh- for naming consistency
`GeneratePortal`, `GenerateClassContainers`, and `GenerateOntologyViews` were the only ops under `linkeddatahub/` not registered with the `ldh-` prefix used by their siblings. Add `name()` overrides, update the example and README to match, and document a few previously unlisted ops while at it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ab4a4eb commit 03cfee3

5 files changed

Lines changed: 29 additions & 1 deletion

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,44 @@ The operations cover read-write Linked Data, SPARQL queries, URI manipulation, a
4949
- `DESCRIBE`
5050
- `SELECT`
5151
- `Substitute`
52+
- `SPARQLString`
53+
- Schema
54+
- `ExtractClasses`
55+
- `ExtractDatatypeProperties`
56+
- `ExtractObjectProperties`
57+
- `ExtractOntology`
5258
- URI & String Operations
5359
- `ResolveURI`
5460
- `EncodeForURI`
5561
- `Concat`
5662
- `Replace`
5763
- `Str`
64+
- `STRUUID`
5865
- `URI`
5966
- Control Flow & Variables
6067
- `Value`
6168
- `Variable`
6269
- `ForEach`
70+
- `Filter`
71+
- `Bindings`
72+
- `Current`
73+
- `Execute`
74+
- `Merge`
6375
- LinkedDataHub-specific
6476
- `ldh-CreateContainer`
6577
- `ldh-CreateItem`
6678
- `ldh-List`
79+
- `ldh-AddFile`
6780
- `ldh-AddGenericService`
6881
- `ldh-AddResultSetChart`
6982
- `ldh-AddSelect`
7083
- `ldh-AddView`
7184
- `ldh-AddObjectBlock`
7285
- `ldh-AddXHTMLBlock`
7386
- `ldh-RemoveBlock`
87+
- `ldh-GeneratePortal`
88+
- `ldh-GenerateClassContainers`
89+
- `ldh-GenerateOntologyViews`
7490

7591
## Usage
7692

examples/generate-portal.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@op": "GeneratePortal",
2+
"@op": "ldh-GeneratePortal",
33
"args": {
44
"endpoint": {
55
"@op": "URI",

src/web_algebra/operations/linkeddatahub/content/generate_class_containers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class GenerateClassContainers(Operation):
2020
This operation orchestrates actual HTTP operations to set up the portal structure.
2121
"""
2222

23+
@classmethod
24+
def name(cls):
25+
return "ldh-GenerateClassContainers"
26+
2327
@classmethod
2428
def description(cls) -> str:
2529
return "Creates LinkedDataHub containers with instance list views for ontology classes"

src/web_algebra/operations/linkeddatahub/content/generate_ontology_views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ class GenerateOntologyViews(Operation):
1515
owl:maxQualifiedCardinality restriction of 1.
1616
"""
1717

18+
@classmethod
19+
def name(cls):
20+
return "ldh-GenerateOntologyViews"
21+
1822
@classmethod
1923
def description(cls) -> str:
2024
return "Generates LinkedDataHub view templates and SPIN queries for non-functional properties"

src/web_algebra/operations/linkeddatahub/content/generate_portal.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ class GeneratePortal(Operation):
2020
4. GenerateClassContainers - creates containers for each class with instance views
2121
"""
2222

23+
@classmethod
24+
def name(cls):
25+
return "ldh-GeneratePortal"
26+
2327
@classmethod
2428
def description(cls) -> str:
2529
return "Generates a complete LinkedDataHub portal with class containers and property views from a SPARQL endpoint"

0 commit comments

Comments
 (0)