SPARQL Story Implementation Ontology
EKGF Editor's Draft
1. SPARQL Story Implementation Ontology§
1.1 Overview§
SPARQL Story Implementation Ontology
| Identifier | Value |
|---|---|
| Ontology IRI / Namespace | https://ekgf.org/ontology/story-impl-sparql# |
| Prefix | ekg-story-impl-sparql |
A direct SPARQL implementation supplies executable query/update source with
sparql or fileName. A StorySPARQLTemplateImplementation instead uses
hasTemplate to identify a StatementTemplate and usesRenderer to identify
the selected TemplateRenderer.
The template document supplies templateText, templateFileName, or both,
and exactly one concept:templateLanguage profile. Its source is interpreted
in that language. The renderer must explicitly declare matching
supportsTemplateLanguage metadata. An execution service must also approve
that profile and renderer; metadata alone does not certify safe execution.
Rendering supplies validated story input values to the template and produces a SPARQL statement for that invocation. This output is parsed and validated before execution. It is a different artifact from the reusable template document and is not stored in the template implementation's native-source fields. The implementation still belongs to exactly one story.
An input concept's placeholder is a concept:TemplateParameterManifestation
with its own declared template language. A native query variable is a
concept:SPARQLVariableManifestation. The source format and role determine
the distinction: a dollar token can be native SPARQL syntax too, so a parser
accepting unexpanded template text does not authorize executing it.
StatementTemplateShape, TemplateRendererShape, and
StorySPARQLTemplateImplementationShape validate these relationships. Load
the local Concept and Story shapes as well when validating the full model.
All entry shapes belong to this ontology's shapes graph.
See the repository's template processing guide for input serialization requirements and an executable metadata example.
1.2 Classes§
1.2.1 ASK§
A SPARQL query story implementation using the ASK query form to produce a boolean result.
ekg-story-impl-sparql:ASK | |
https://ekgf.org/ontology/story-impl-sparql#ASK | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | ASK |
rdfs:seeAlso | https://www.w3.org/TR/sparql11-query/#ask |
rdfs:subClassOf | ekg-story-impl-sparql:StorySPARQLQueryImplementation |
1.2.2 CONSTRUCT§
A SPARQL query story implementation using the CONSTRUCT query form to produce an RDF graph.
ekg-story-impl-sparql:CONSTRUCT | |
https://ekgf.org/ontology/story-impl-sparql#CONSTRUCT | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | CONSTRUCT |
rdfs:seeAlso | https://www.w3.org/TR/sparql11-query/#construct |
rdfs:subClassOf | ekg-story-impl-sparql:StorySPARQLQueryImplementation |
1.2.3 DELETE§
A SPARQL update story implementation classified as deleting data.
ekg-story-impl-sparql:DELETE | |
https://ekgf.org/ontology/story-impl-sparql#DELETE | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | DELETE |
rdfs:seeAlso | https://www.w3.org/TR/sparql11-update/#deleteInsert |
rdfs:subClassOf | ekg-story-impl-sparql:StorySPARQLUpdateImplementation |
1.2.4 DESCRIBE§
A SPARQL query story implementation using the DESCRIBE query form to obtain an RDF description of resources.
ekg-story-impl-sparql:DESCRIBE | |
https://ekgf.org/ontology/story-impl-sparql#DESCRIBE | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | DESCRIBE |
rdfs:seeAlso | https://www.w3.org/TR/sparql11-query/#describe |
rdfs:subClassOf | ekg-story-impl-sparql:StorySPARQLQueryImplementation |
1.2.5 DROP§
A SPARQL update story implementation classified as dropping a graph.
ekg-story-impl-sparql:DROP | |
https://ekgf.org/ontology/story-impl-sparql#DROP | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | DROP |
rdfs:seeAlso | https://www.w3.org/TR/sparql11-update/#drop |
rdfs:subClassOf | ekg-story-impl-sparql:StorySPARQLUpdateImplementation |
1.2.6 RDFox SPARQL flavor§
The RDFox-specific SPARQL flavor represented in this vocabulary as a specialization of SPARQL11.
ekg-story-impl-sparql:RDFoxSPARQL | |
https://ekgf.org/ontology/story-impl-sparql#RDFoxSPARQL | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | RDFox SPARQL flavor |
rdfs:subClassOf | ekg-story-impl-sparql:SPARQL11 |
1.2.7 SELECT§
A SPARQL query story implementation using the SELECT query form to return variable bindings.
ekg-story-impl-sparql:SELECT | |
https://ekgf.org/ontology/story-impl-sparql#SELECT | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | SELECT |
rdfs:seeAlso | https://www.w3.org/TR/sparql11-query/#select |
rdfs:subClassOf | ekg-story-impl-sparql:StorySPARQLQueryImplementation |
1.2.8 SPARQL 1.0§
The SPARQL 1.0 flavor in the story implementation vocabulary.
ekg-story-impl-sparql:SPARQL10 | |
https://ekgf.org/ontology/story-impl-sparql#SPARQL10 | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | SPARQL 1.0 |
rdfs:subClassOf | ekg-story-impl-sparql:SPARQLFlavor |
1.2.9 SPARQL 1.1§
The SPARQL 1.1 flavor in the story implementation vocabulary.
ekg-story-impl-sparql:SPARQL11 | |
https://ekgf.org/ontology/story-impl-sparql#SPARQL11 | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | SPARQL 1.1 |
rdfs:subClassOf | ekg-story-impl-sparql:SPARQLFlavor |
1.2.10 SPARQL database product§
A database product entry used to identify a platform for SPARQL story implementations.
ekg-story-impl-sparql:SPARQLDatabaseProduct | |
https://ekgf.org/ontology/story-impl-sparql#SPARQLDatabaseProduct | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | SPARQL database product |
1.2.11 SPARQL database vendor§
A vendor entry in the SPARQL database implementation vocabulary, distinct from a database product.
ekg-story-impl-sparql:SPARQLDatabaseVendor | |
https://ekgf.org/ontology/story-impl-sparql#SPARQLDatabaseVendor | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | SPARQL database vendor |
1.2.12 SPARQL Flavor§
A SPARQL language or implementation-specific dialect used to classify story implementations.
ekg-story-impl-sparql:SPARQLFlavor | |
https://ekgf.org/ontology/story-impl-sparql#SPARQLFlavor | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | SPARQL Flavor |
1.2.13 Stardog SPARQL flavor§
The Stardog-specific SPARQL flavor represented in this vocabulary as a specialization of SPARQL11.
ekg-story-impl-sparql:StardogSPARQL | |
https://ekgf.org/ontology/story-impl-sparql#StardogSPARQL | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | Stardog SPARQL flavor |
rdfs:subClassOf | ekg-story-impl-sparql:SPARQL11 |
1.2.14 Statement Template§
A document in one declared template language/profile, stored inline or in a file, that a renderer turns into a SPARQL query or update. It is template source even when its unexpanded text happens to parse as SPARQL.
ekg-story-impl-sparql:StatementTemplate | |
https://ekgf.org/ontology/story-impl-sparql#StatementTemplate | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | Statement Template |
rdfs:subClassOf | (rdf:type: owl:Restriction; owl:minCardinality: 1; owl:onProperty: ekg-concept:templateLanguage) |
rdfs:subClassOf | (rdf:type: owl:Restriction; owl:maxCardinality: 1; owl:onProperty: ekg-concept:templateLanguage) |
1.2.15 SPARQL story implementation§
A story implementation expressed using a SPARQL statement, with optional file and language-flavor metadata.
ekg-story-impl-sparql:StorySPARQLImplementation | |
https://ekgf.org/ontology/story-impl-sparql#StorySPARQLImplementation | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | SPARQL story implementation |
rdfs:subClassOf | ekg-story:StoryImplementation |
1.2.16 SPARQL query story implementation§
Story SPARQL Implementation for query statements like `SELECT`, `CONSTRUCT`, `ASK` and `DESCRIBE`
ekg-story-impl-sparql:StorySPARQLQueryImplementation | |
https://ekgf.org/ontology/story-impl-sparql#StorySPARQLQueryImplementation | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | SPARQL query story implementation |
rdfs:subClassOf | ekg-story-impl-sparql:StorySPARQLImplementation |
1.2.17 Story SPARQL Template Implementation§
A story implementation that produces executable SPARQL by rendering exactly one template document with exactly one selected renderer. Its source is a document in a template language; the generated statement is SPARQL.
ekg-story-impl-sparql:StorySPARQLTemplateImplementation | |
https://ekgf.org/ontology/story-impl-sparql#StorySPARQLTemplateImplementation | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | Story SPARQL Template Implementation |
rdfs:subClassOf | ekg-story-impl-sparql:StorySPARQLImplementation |
rdfs:subClassOf | (rdf:type: owl:Restriction; owl:minCardinality: 1; owl:onProperty: ekg-story-impl-sparql:hasTemplate) |
rdfs:subClassOf | (rdf:type: owl:Restriction; owl:minCardinality: 1; owl:onProperty: ekg-story-impl-sparql:usesRenderer) |
1.2.18 SPARQL update story implementation§
Story SPARQL Implementation for update statements like `INSERT/DELETE/WHERE` etc
ekg-story-impl-sparql:StorySPARQLUpdateImplementation | |
https://ekgf.org/ontology/story-impl-sparql#StorySPARQLUpdateImplementation | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | SPARQL update story implementation |
rdfs:subClassOf | ekg-story-impl-sparql:StorySPARQLImplementation |
1.2.19 Template Renderer§
A software component that renders statement-template documents using story input values and explicitly declares the template-language profiles it supports. The execution service is responsible for safe typed substitution and validation of generated SPARQL.
ekg-story-impl-sparql:TemplateRenderer | |
https://ekgf.org/ontology/story-impl-sparql#TemplateRenderer | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | Template Renderer |
rdfs:subClassOf | (rdf:type: owl:Restriction; owl:minCardinality: 1; owl:onProperty: ekg-story-impl-sparql:supportsTemplateLanguage) |
1.2.20 UPDATE§
A story implementation classified as a SPARQL update. This class does not distinguish the individual SPARQL update forms.
ekg-story-impl-sparql:UPDATE | |
https://ekgf.org/ontology/story-impl-sparql#UPDATE | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:Class |
rdfs:label | UPDATE |
rdfs:seeAlso | https://www.w3.org/TR/sparql11-update/ |
rdfs:subClassOf | ekg-story-impl-sparql:StorySPARQLUpdateImplementation |
1.3 Properties§
1.3.1 File name§
The name of the file name that contains the SPARQL implementation of the given Story. This name is assumed to be relative to the directory where the Turtle file containing the StoryImplementation lives.
ekg-story-impl-sparql:fileName | |
https://ekgf.org/ontology/story-impl-sparql#fileName | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:DatatypeProperty |
rdf:type | owl:FunctionalProperty |
rdfs:domain | ekg-story-impl-sparql:StorySPARQLImplementation |
rdfs:label | File name |
1.3.2 Supports SPARQL Flavor; Supports SPARQL Flavour§
Identifies the SPARQL language or implementation-specific flavor used by a SPARQL story implementation.
ekg-story-impl-sparql:flavor | |
https://ekgf.org/ontology/story-impl-sparql#flavor | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:ObjectProperty |
rdfs:domain | ekg-story-impl-sparql:StorySPARQLImplementation |
rdfs:label | Supports SPARQL Flavor |
rdfs:label | Supports SPARQL Flavour |
rdfs:range | ekg-story-impl-sparql:SPARQLFlavor |
1.3.3 has template§
Links a SPARQL-producing story implementation to its template document. The source language is declared on that document; its text is not executable SPARQL source.
ekg-story-impl-sparql:hasTemplate | |
https://ekgf.org/ontology/story-impl-sparql#hasTemplate | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:FunctionalProperty |
rdf:type | owl:ObjectProperty |
rdfs:domain | ekg-story-impl-sparql:StorySPARQLTemplateImplementation |
rdfs:label | has template |
rdfs:range | ekg-story-impl-sparql:StatementTemplate |
1.3.4 SPARQL statement§
Executable SPARQL query or update text. Template source belongs to a StatementTemplate linked through hasTemplate and must be rendered before the resulting SPARQL is parsed and executed.
ekg-story-impl-sparql:sparql | |
https://ekgf.org/ontology/story-impl-sparql#sparql | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:DatatypeProperty |
rdf:type | owl:FunctionalProperty |
rdfs:domain | ekg-story-impl-sparql:StorySPARQLImplementation |
rdfs:label | SPARQL statement |
1.3.5 supports template language§
Records a documented template-language profile implemented by a renderer. Support is an explicit capability assertion, not proof of safe RDF serialization or approval to execute.
ekg-story-impl-sparql:supportsTemplateLanguage | |
https://ekgf.org/ontology/story-impl-sparql#supportsTemplateLanguage | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:ObjectProperty |
rdfs:domain | ekg-story-impl-sparql:TemplateRenderer |
rdfs:label | supports template language |
rdfs:range | ekg-concept:TemplateLanguage |
1.3.6 template file name§
The file containing a template document, relative to the document's source context. It identifies template source rather than a file of executable SPARQL.
ekg-story-impl-sparql:templateFileName | |
https://ekgf.org/ontology/story-impl-sparql#templateFileName | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:DatatypeProperty |
rdf:type | owl:FunctionalProperty |
rdfs:domain | ekg-story-impl-sparql:StatementTemplate |
rdfs:label | template file name |
rdfs:range | xsd:string |
1.3.7 template text§
The unrendered template document's source text, interpreted in its declared template language. Parsing this text as SPARQL does not replace template rendering.
ekg-story-impl-sparql:templateText | |
https://ekgf.org/ontology/story-impl-sparql#templateText | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:DatatypeProperty |
rdf:type | owl:FunctionalProperty |
rdfs:domain | ekg-story-impl-sparql:StatementTemplate |
rdfs:label | template text |
rdfs:range | xsd:string |
1.3.8 uses renderer§
Identifies the renderer selected for this template-based implementation. It must explicitly support the template document's declared language/profile.
ekg-story-impl-sparql:usesRenderer | |
https://ekgf.org/ontology/story-impl-sparql#usesRenderer | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:FunctionalProperty |
rdf:type | owl:ObjectProperty |
rdfs:domain | ekg-story-impl-sparql:StorySPARQLTemplateImplementation |
rdfs:label | uses renderer |
rdfs:range | ekg-story-impl-sparql:TemplateRenderer |
1.4 Named Individuals§
1.4.1 Allegro Graph§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseProduct
The AllegroGraph product entry used to identify a database platform for SPARQL story implementations.
ekg-story-impl-sparql:AllegroGraph | |
https://ekgf.org/ontology/story-impl-sparql#AllegroGraph | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseProduct |
rdfs:label | Allegro Graph |
1.4.2 Amazon Web Services§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseVendor
The vendor entry named Amazon Web Services in the SPARQL database implementation vocabulary.
ekg-story-impl-sparql:AmazonWebServicesInc | |
https://ekgf.org/ontology/story-impl-sparql#AmazonWebServicesInc | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseVendor |
rdfs:label | Amazon Web Services |
1.4.3 Anzo Graph§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseProduct
The AnzoGraph product entry used to identify a database platform for SPARQL story implementations.
ekg-story-impl-sparql:AnzoGraph | |
https://ekgf.org/ontology/story-impl-sparql#AnzoGraph | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseProduct |
rdfs:label | Anzo Graph |
1.4.4 Blazegraph§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseProduct
The Blazegraph product entry used to identify a database platform for SPARQL story implementations.
ekg-story-impl-sparql:BlazeGraph | |
https://ekgf.org/ontology/story-impl-sparql#BlazeGraph | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseProduct |
rdfs:label | Blazegraph |
1.4.5 Cambridge Semantics§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseVendor
The vendor entry named Cambridge Semantics in the SPARQL database implementation vocabulary.
ekg-story-impl-sparql:CambridgeSemantics | |
https://ekgf.org/ontology/story-impl-sparql#CambridgeSemantics | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseVendor |
rdfs:label | Cambridge Semantics |
1.4.6 GraphDB§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseProduct
The GraphDB product entry used to identify a database platform for SPARQL story implementations.
ekg-story-impl-sparql:GraphDb | |
https://ekgf.org/ontology/story-impl-sparql#GraphDb | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseProduct |
rdfs:label | GraphDB |
1.4.7 Neptune§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseProduct
The Neptune product entry used to identify a database platform for SPARQL story implementations.
ekg-story-impl-sparql:Neptune | |
https://ekgf.org/ontology/story-impl-sparql#Neptune | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseProduct |
rdfs:label | Neptune |
1.4.8 Ontotext§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseVendor
The vendor entry named Ontotext in the SPARQL database implementation vocabulary.
ekg-story-impl-sparql:Ontotext | |
https://ekgf.org/ontology/story-impl-sparql#Ontotext | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseVendor |
rdfs:label | Ontotext |
1.4.9 Oxford Semantic Technologies§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseVendor
The vendor entry named Oxford Semantic Technologies in the SPARQL database implementation vocabulary.
ekg-story-impl-sparql:OxfordSemanticTechnologies | |
https://ekgf.org/ontology/story-impl-sparql#OxfordSemanticTechnologies | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseVendor |
rdfs:label | Oxford Semantic Technologies |
1.4.10 RD Fox§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseProduct
The RDFox product entry used to identify a database platform for SPARQL story implementations.
ekg-story-impl-sparql:RDFox | |
https://ekgf.org/ontology/story-impl-sparql#RDFox | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseProduct |
rdfs:label | RD Fox |
1.4.11 Stardog§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseProduct
The Stardog product entry used to identify a database platform for SPARQL story implementations.
ekg-story-impl-sparql:Stardog | |
https://ekgf.org/ontology/story-impl-sparql#Stardog | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseProduct |
rdfs:label | Stardog |
1.4.12 Stardog Union§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseVendor
The vendor entry named Stardog Union in the SPARQL database implementation vocabulary.
ekg-story-impl-sparql:StardogUnion | |
https://ekgf.org/ontology/story-impl-sparql#StardogUnion | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseVendor |
rdfs:label | Stardog Union |
1.4.13 Virtuoso§
Instance of: ekg-story-impl-sparql:SPARQLDatabaseProduct
The Virtuoso product entry used to identify a database platform for SPARQL story implementations.
ekg-story-impl-sparql:Virtuoso | |
https://ekgf.org/ontology/story-impl-sparql#Virtuoso | |
| RDF predicate | Value |
|---|---|
rdf:type | owl:NamedIndividual |
rdf:type | ekg-story-impl-sparql:SPARQLDatabaseProduct |
rdfs:label | Virtuoso |
1.5 Shapes§
1.5.1 Statement Template Shape§
Requires one documented template-language profile and nonempty inline or file-based template source. Source content and its file location may both be supplied.
ekg-story-impl-sparql:StatementTemplateShape | |
https://ekgf.org/ontology/story-impl-sparql#StatementTemplateShape | |
| RDF predicate | Value |
|---|---|
rdf:type | sh:NodeShape |
rdfs:label | Statement Template Shape |
sh:nodeKind | sh:BlankNodeOrIRI |
sh:or | ((sh:property: (sh:minCount: 1; sh:path: ekg-story-impl-sparql:templateText)), (sh:property: (sh:minCount: 1; sh:path: ekg-story-impl-sparql:templateFileName))) |
sh:property | (sh:datatype: xsd:string; sh:maxCount: 1; sh:minLength: 1; sh:path: ekg-story-impl-sparql:templateFileName) |
sh:property | (sh:class: ekg-concept:TemplateLanguage; sh:maxCount: 1; sh:minCount: 1; sh:nodeKind: sh:IRI; sh:path: ekg-concept:templateLanguage) |
sh:property | (sh:datatype: xsd:string; sh:maxCount: 1; sh:minLength: 1; sh:path: ekg-story-impl-sparql:templateText) |
sh:targetClass | ekg-story-impl-sparql:StatementTemplate |
sh:targetObjectsOf | ekg-story-impl-sparql:hasTemplate |
sh:targetSubjectsOf | ekg-story-impl-sparql:templateFileName |
sh:targetSubjectsOf | ekg-story-impl-sparql:templateText |
1.5.2 Story SPARQL Template Implementation Shape§
Requires one template and one renderer with matching language support, and rejects mixing template source with executable-SPARQL source fields.
ekg-story-impl-sparql:StorySPARQLTemplateImplementationShape | |
https://ekgf.org/ontology/story-impl-sparql#StorySPARQLTemplateImplementationShape | |
| RDF predicate | Value |
|---|---|
rdf:type | sh:NodeShape |
rdfs:label | Story SPARQL Template Implementation Shape |
sh:nodeKind | sh:BlankNodeOrIRI |
sh:property | (sh:maxCount: 0; sh:message: A template implementation supplies source through hasTemplate; executable SPARQL is produced during rendering.; sh:path: ekg-story-impl-sparql:sparql) |
sh:property | (sh:maxCount: 0; sh:message: A template source file belongs to the linked StatementTemplate through templateFileName.; sh:path: ekg-story-impl-sparql:fileName) |
sh:property | (sh:class: ekg-story-impl-sparql:StatementTemplate; sh:maxCount: 1; sh:minCount: 1; sh:nodeKind: sh:BlankNodeOrIRI; sh:path: ekg-story-impl-sparql:hasTemplate) |
sh:property | (sh:class: ekg-story-impl-sparql:TemplateRenderer; sh:maxCount: 1; sh:minCount: 1; sh:nodeKind: sh:BlankNodeOrIRI; sh:path: ekg-story-impl-sparql:usesRenderer) |
sh:sparql | (sh:message: The selected renderer must explicitly support the template document's declared language/profile.; sh:select: SPARQL SELECT query 1) |
sh:targetClass | ekg-story-impl-sparql:StorySPARQLTemplateImplementation |
sh:targetSubjectsOf | ekg-story-impl-sparql:hasTemplate |
sh:targetSubjectsOf | ekg-story-impl-sparql:usesRenderer |
1.5.2.1 SPARQL query 1§
The selected renderer must explicitly support the template document's declared language/profile.
SELECT $this WHERE {
$this <https://ekgf.org/ontology/story-impl-sparql#hasTemplate> ?template ;
<https://ekgf.org/ontology/story-impl-sparql#usesRenderer> ?renderer .
?template <https://ekgf.org/ontology/concept#templateLanguage> ?language .
FILTER NOT EXISTS {
?renderer <https://ekgf.org/ontology/story-impl-sparql#supportsTemplateLanguage> ?language .
}
}
1.5.3 Template Renderer Shape§
Requires a renderer to explicitly identify the template-language profiles it supports. Execution approval and safe substitution remain application responsibilities.
ekg-story-impl-sparql:TemplateRendererShape | |
https://ekgf.org/ontology/story-impl-sparql#TemplateRendererShape | |
| RDF predicate | Value |
|---|---|
rdf:type | sh:NodeShape |
rdfs:label | Template Renderer Shape |
sh:nodeKind | sh:BlankNodeOrIRI |
sh:property | (sh:class: ekg-concept:TemplateLanguage; sh:minCount: 1; sh:nodeKind: sh:IRI; sh:path: ekg-story-impl-sparql:supportsTemplateLanguage) |
sh:targetClass | ekg-story-impl-sparql:TemplateRenderer |
sh:targetObjectsOf | ekg-story-impl-sparql:usesRenderer |
sh:targetSubjectsOf | ekg-story-impl-sparql:supportsTemplateLanguage |