EKGF Ontologies / SPARQL Story Implementation Ontology

EKGF Editor's Draft

SPARQL Story Implementation Ontology

EKGF Editor's Draft

1. SPARQL Story Implementation Ontology§

1.1 Overview§

SPARQL Story Implementation Ontology

IdentifierValue
Ontology IRI / Namespacehttps://ekgf.org/ontology/story-impl-sparql#
Prefixekg-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 predicateValue
rdf:typeowl:Class
rdfs:labelASK
rdfs:seeAlsohttps://www.w3.org/TR/sparql11-query/#ask
rdfs:subClassOfekg-story-impl-sparql:StorySPARQLQueryImplementation
UML class diagram for ASK. Diagram labels: «owl:Class»; ASK; «owl:Class»; SPARQL query story; implementation; ASK rdfs:subClassOf SPARQL query story implementation.«owl:Class»ASK«owl:Class»SPARQL query storyimplementation
Class neighborhood: ASK [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelCONSTRUCT
rdfs:seeAlsohttps://www.w3.org/TR/sparql11-query/#construct
rdfs:subClassOfekg-story-impl-sparql:StorySPARQLQueryImplementation
UML class diagram for CONSTRUCT. Diagram labels: «owl:Class»; CONSTRUCT; «owl:Class»; SPARQL query story; implementation; CONSTRUCT rdfs:subClassOf SPARQL query story implementation.«owl:Class»CONSTRUCT«owl:Class»SPARQL query storyimplementation
Class neighborhood: CONSTRUCT [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelDELETE
rdfs:seeAlsohttps://www.w3.org/TR/sparql11-update/#deleteInsert
rdfs:subClassOfekg-story-impl-sparql:StorySPARQLUpdateImplementation
UML class diagram for DELETE. Diagram labels: «owl:Class»; DELETE; «owl:Class»; SPARQL update story; implementation; DELETE rdfs:subClassOf SPARQL update story implementation.«owl:Class»DELETE«owl:Class»SPARQL update storyimplementation
Class neighborhood: DELETE [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelDESCRIBE
rdfs:seeAlsohttps://www.w3.org/TR/sparql11-query/#describe
rdfs:subClassOfekg-story-impl-sparql:StorySPARQLQueryImplementation
UML class diagram for DESCRIBE. Diagram labels: «owl:Class»; DESCRIBE; «owl:Class»; SPARQL query story; implementation; DESCRIBE rdfs:subClassOf SPARQL query story implementation.«owl:Class»DESCRIBE«owl:Class»SPARQL query storyimplementation
Class neighborhood: DESCRIBE [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelDROP
rdfs:seeAlsohttps://www.w3.org/TR/sparql11-update/#drop
rdfs:subClassOfekg-story-impl-sparql:StorySPARQLUpdateImplementation
UML class diagram for DROP. Diagram labels: «owl:Class»; DROP; «owl:Class»; SPARQL update story; implementation; DROP rdfs:subClassOf SPARQL update story implementation.«owl:Class»DROP«owl:Class»SPARQL update storyimplementation
Class neighborhood: DROP [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelRDFox SPARQL flavor
rdfs:subClassOfekg-story-impl-sparql:SPARQL11
UML class diagram for RDFox SPARQL flavor. Diagram labels: «owl:Class»; RDFox SPARQL flavor; «owl:Class»; SPARQL 1.1; RDFox SPARQL flavor rdfs:subClassOf SPARQL 1.1.«owl:Class»RDFox SPARQL flavor«owl:Class»SPARQL 1.1
Class neighborhood: RDFox SPARQL flavor [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelSELECT
rdfs:seeAlsohttps://www.w3.org/TR/sparql11-query/#select
rdfs:subClassOfekg-story-impl-sparql:StorySPARQLQueryImplementation
UML class diagram for SELECT. Diagram labels: «owl:Class»; SELECT; «owl:Class»; SPARQL query story; implementation; SELECT rdfs:subClassOf SPARQL query story implementation.«owl:Class»SELECT«owl:Class»SPARQL query storyimplementation
Class neighborhood: SELECT [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelSPARQL 1.0
rdfs:subClassOfekg-story-impl-sparql:SPARQLFlavor
UML class diagram for SPARQL 1.0. Diagram labels: «owl:Class»; SPARQL 1.0; «owl:Class»; SPARQL Flavor; SPARQL 1.0 rdfs:subClassOf SPARQL Flavor.«owl:Class»SPARQL 1.0«owl:Class»SPARQL Flavor
Class neighborhood: SPARQL 1.0 [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelSPARQL 1.1
rdfs:subClassOfekg-story-impl-sparql:SPARQLFlavor
UML class diagram for SPARQL 1.1. Diagram labels: «owl:Class»; RDFox SPARQL flavor; «owl:Class»; SPARQL 1.1; «owl:Class»; SPARQL Flavor; «owl:Class»; Stardog SPARQL flavor; RDFox SPARQL flavor rdfs:subClassOf SPARQL 1.1. SPARQL 1.1 rdfs:subClassOf SPARQL Flavor. Stardog SPARQL flavor rdfs:subClassOf SPARQL 1.1.«owl:Class»RDFox SPARQL flavor«owl:Class»SPARQL 1.1«owl:Class»SPARQL Flavor«owl:Class»Stardog SPARQL flavor
Class neighborhood: SPARQL 1.1 [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelSPARQL database product
UML class diagram for SPARQL database product. Diagram labels: «owl:Class»; SPARQL database product; «owl:Class»SPARQL database product
Class neighborhood: SPARQL database product [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelSPARQL database vendor
UML class diagram for SPARQL database vendor. Diagram labels: «owl:Class»; SPARQL database vendor; «owl:Class»SPARQL database vendor
Class neighborhood: SPARQL database vendor [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelSPARQL Flavor
UML class diagram for SPARQL Flavor. Diagram labels: «owl:Class»; SPARQL 1.0; «owl:Class»; SPARQL 1.1; «owl:Class»; SPARQL Flavor; «owl:Class»; SPARQL story; implementation; Supports SPARQL Flavour; SPARQL 1.0 rdfs:subClassOf SPARQL Flavor. SPARQL 1.1 rdfs:subClassOf SPARQL Flavor. Supports SPARQL Flavour rdfs:domain SPARQL story implementation. Supports SPARQL Flavour rdfs:range SPARQL Flavor.«owl:Class»SPARQL 1.0«owl:Class»SPARQL 1.1«owl:Class»SPARQL Flavor«owl:Class»SPARQL storyimplementationSupports SPARQL Flavour
Class neighborhood: SPARQL Flavor [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelStardog SPARQL flavor
rdfs:subClassOfekg-story-impl-sparql:SPARQL11
UML class diagram for Stardog SPARQL flavor. Diagram labels: «owl:Class»; SPARQL 1.1; «owl:Class»; Stardog SPARQL flavor; Stardog SPARQL flavor rdfs:subClassOf SPARQL 1.1.«owl:Class»SPARQL 1.1«owl:Class»Stardog SPARQL flavor
Class neighborhood: Stardog SPARQL flavor [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelStatement 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)
UML class diagram for Statement Template. Diagram labels: «Literal value»; 1; «OWL expression»; Anonymous OWL expression; 1; «OWL expression»; Anonymous OWL expression; 2; «owl:Class»; Template Language; (ekg-concept:; TemplateLanguage); «Object property»; template language; (ekg-concept:template; Language); «owl:Class»; Statement Template; template file name : xsd:string [0..1]; template text : xsd:string [0..1]; «owl:Class»; Story SPARQL Template; Implementation; File name [0..0]; SPARQL statement [0..0]; «owl:Class»; Template Renderer; has template; 1..1; template language; (ekg-concept:template; Language); 1..1; uses renderer; 1..1; rdfs:; subClassOf; owl:; minCardinality; owl:; onProperty; rdfs:; subClassOf; owl:; maxCardinality; owl:; onProperty; has template rdfs:domain Story SPARQL Template Implementation. has template rdfs:range Statement Template. template file name rdfs:domain Statement Template. template file name rdfs:range xsd:string. template text rdfs:domain Statement Template. template text rdfs:range xsd:string. Statement Template rdfs:subClassOf Anonymous OWL expression 1. Anonymous OWL expression 1 owl:minCardinality 1. Anonymous OWL expression 1 owl:onProperty template language (ekg-concept:templateLanguage). Statement Template rdfs:subClassOf Anonymous OWL expression 2. Anonymous OWL expression 2 owl:maxCardinality 1. Anonymous OWL expression 2 owl:onProperty template language (ekg-concept:templateLanguage).«Literal value»1«OWL expression»Anonymous OWL expression1«OWL expression»Anonymous OWL expression2«owl:Class»Template Language(ekg-concept:TemplateLanguage)«Object property»template language(ekg-concept:templateLanguage)«owl:Class»Statement Templatetemplate file name : xsd:string [0..1]template text : xsd:string [0..1]«owl:Class»Story SPARQL TemplateImplementationFile name [0..0]SPARQL statement [0..0]«owl:Class»Template Rendererhas template1..1template language(ekg-concept:templateLanguage)1..1uses renderer1..1rdfs:subClassOfowl:minCardinalityowl:onPropertyrdfs:subClassOfowl:maxCardinalityowl:onProperty
Class neighborhood: Statement Template [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelSPARQL story implementation
rdfs:subClassOfekg-story:StoryImplementation
UML class diagram for SPARQL story implementation. Diagram labels: «owl:Class»; Story Implementation; (ekg-story:; StoryImplementation); «owl:Class»; Statement Template; «owl:Class»; SPARQL story; implementation; File name; «owl:Class»; SPARQL query story; implementation; «owl:Class»; Story SPARQL Template; Implementation; File name [0..0]; SPARQL statement [0..0]; «owl:Class»; SPARQL update story; implementation; «owl:Class»; Template Renderer; has template; 1..1; uses renderer; 1..1; SPARQL story implementation rdfs:subClassOf Story Implementation (ekg-story:StoryImplementation). SPARQL query story implementation rdfs:subClassOf SPARQL story implementation. Story SPARQL Template Implementation rdfs:subClassOf SPARQL story implementation. SPARQL update story implementation rdfs:subClassOf SPARQL story implementation. File name rdfs:domain SPARQL story implementation.«owl:Class»Story Implementation(ekg-story:StoryImplementation)«owl:Class»Statement Template«owl:Class»SPARQL storyimplementationFile name«owl:Class»SPARQL query storyimplementation«owl:Class»Story SPARQL TemplateImplementationFile name [0..0]SPARQL statement [0..0]«owl:Class»SPARQL update storyimplementation«owl:Class»Template Rendererhas template1..1uses renderer1..1
Class neighborhood: SPARQL story implementation [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelSPARQL query story implementation
rdfs:subClassOfekg-story-impl-sparql:StorySPARQLImplementation
UML class diagram for SPARQL query story implementation. Diagram labels: «owl:Class»; ASK; «owl:Class»; CONSTRUCT; «owl:Class»; DESCRIBE; «owl:Class»; SELECT; «owl:Class»; SPARQL story; implementation; «owl:Class»; SPARQL query story; implementation; ASK rdfs:subClassOf SPARQL query story implementation. CONSTRUCT rdfs:subClassOf SPARQL query story implementation. DESCRIBE rdfs:subClassOf SPARQL query story implementation. SELECT rdfs:subClassOf SPARQL query story implementation. SPARQL query story implementation rdfs:subClassOf SPARQL story implementation.«owl:Class»ASK«owl:Class»CONSTRUCT«owl:Class»DESCRIBE«owl:Class»SELECT«owl:Class»SPARQL storyimplementation«owl:Class»SPARQL query storyimplementation
Class neighborhood: SPARQL query story implementation [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelStory SPARQL Template Implementation
rdfs:subClassOfekg-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)
UML class diagram for Story SPARQL Template Implementation. Diagram labels: «Literal value»; 1; «OWL expression»; Anonymous OWL expression; 1; «OWL expression»; Anonymous OWL expression; 2; «owl:Class»; Template Language; (ekg-concept:; TemplateLanguage); «owl:Class»; Statement Template; template file name : xsd:string [0..1]; template text : xsd:string [0..1]; «owl:Class»; SPARQL story; implementation; «owl:Class»; Story SPARQL Template; Implementation; File name [0..0]; SPARQL statement [0..0]; «owl:Class»; Template Renderer; «Object property»; has template; «Object property»; uses renderer; template language; (ekg-concept:template; Language); 1..1; has template; 1..1; uses renderer; 1..1; supports template; language; 1..*; rdfs:; domain; rdfs:; range; rdfs:; domain; rdfs:; range; rdfs:; subClassOf; owl:; minCardinality; owl:; onProperty; rdfs:; subClassOf; owl:; minCardinality; owl:; onProperty; Story SPARQL Template Implementation rdfs:subClassOf SPARQL story implementation. has template rdfs:domain Story SPARQL Template Implementation. has template rdfs:range Statement Template. uses renderer rdfs:domain Story SPARQL Template Implementation. uses renderer rdfs:range Template Renderer. Story SPARQL Template Implementation rdfs:subClassOf Anonymous OWL expression 1. Anonymous OWL expression 1 owl:minCardinality 1. Anonymous OWL expression 1 owl:onProperty has template. Story SPARQL Template Implementation rdfs:subClassOf Anonymous OWL expression 2. Anonymous OWL expression 2 owl:minCardinality 1. Anonymous OWL expression 2 owl:onProperty uses renderer.«Literal value»1«OWL expression»Anonymous OWL expression1«OWL expression»Anonymous OWL expression2«owl:Class»Template Language(ekg-concept:TemplateLanguage)«owl:Class»Statement Templatetemplate file name : xsd:string [0..1]template text : xsd:string [0..1]«owl:Class»SPARQL storyimplementation«owl:Class»Story SPARQL TemplateImplementationFile name [0..0]SPARQL statement [0..0]«owl:Class»Template Renderer«Object property»has template«Object property»uses renderertemplate language(ekg-concept:templateLanguage)1..1has template1..1uses renderer1..1supports templatelanguage1..*rdfs:domainrdfs:rangerdfs:domainrdfs:rangerdfs:subClassOfowl:minCardinalityowl:onPropertyrdfs:subClassOfowl:minCardinalityowl:onProperty
Class neighborhood: Story SPARQL Template Implementation [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelSPARQL update story implementation
rdfs:subClassOfekg-story-impl-sparql:StorySPARQLImplementation
UML class diagram for SPARQL update story implementation. Diagram labels: «owl:Class»; DELETE; «owl:Class»; DROP; «owl:Class»; SPARQL story; implementation; «owl:Class»; SPARQL update story; implementation; «owl:Class»; UPDATE; DELETE rdfs:subClassOf SPARQL update story implementation. DROP rdfs:subClassOf SPARQL update story implementation. SPARQL update story implementation rdfs:subClassOf SPARQL story implementation. UPDATE rdfs:subClassOf SPARQL update story implementation.«owl:Class»DELETE«owl:Class»DROP«owl:Class»SPARQL storyimplementation«owl:Class»SPARQL update storyimplementation«owl:Class»UPDATE
Class neighborhood: SPARQL update story implementation [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelTemplate Renderer
rdfs:subClassOf(rdf:type: owl:Restriction; owl:minCardinality: 1; owl:onProperty: ekg-story-impl-sparql:supportsTemplateLanguage)
UML class diagram for Template Renderer. Diagram labels: «Literal value»; 1; «OWL expression»; Anonymous OWL expression; 1; «owl:Class»; Template Language; (ekg-concept:; TemplateLanguage); «owl:Class»; Statement Template; «owl:Class»; Story SPARQL Template; Implementation; File name [0..0]; SPARQL statement [0..0]; «owl:Class»; Template Renderer; «Object property»; supports template; language; uses renderer; 1..1; has template; 1..1; supports template; language; 1..*; rdfs:; domain; rdfs:; range; rdfs:; subClassOf; owl:; minCardinality; owl:; onProperty; supports template language rdfs:domain Template Renderer. supports template language rdfs:range Template Language (ekg-concept:TemplateLanguage). uses renderer rdfs:domain Story SPARQL Template Implementation. uses renderer rdfs:range Template Renderer. Template Renderer rdfs:subClassOf Anonymous OWL expression 1. Anonymous OWL expression 1 owl:minCardinality 1. Anonymous OWL expression 1 owl:onProperty supports template language.«Literal value»1«OWL expression»Anonymous OWL expression1«owl:Class»Template Language(ekg-concept:TemplateLanguage)«owl:Class»Statement Template«owl:Class»Story SPARQL TemplateImplementationFile name [0..0]SPARQL statement [0..0]«owl:Class»Template Renderer«Object property»supports templatelanguageuses renderer1..1has template1..1supports templatelanguage1..*rdfs:domainrdfs:rangerdfs:subClassOfowl:minCardinalityowl:onProperty
Class neighborhood: Template Renderer [1]

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 predicateValue
rdf:typeowl:Class
rdfs:labelUPDATE
rdfs:seeAlsohttps://www.w3.org/TR/sparql11-update/
rdfs:subClassOfekg-story-impl-sparql:StorySPARQLUpdateImplementation
UML class diagram for UPDATE. Diagram labels: «owl:Class»; SPARQL update story; implementation; «owl:Class»; UPDATE; UPDATE rdfs:subClassOf SPARQL update story implementation.«owl:Class»SPARQL update storyimplementation«owl:Class»UPDATE
Class neighborhood: UPDATE [1]

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 predicateValue
rdf:typeowl:DatatypeProperty
rdf:typeowl:FunctionalProperty
rdfs:domainekg-story-impl-sparql:StorySPARQLImplementation
rdfs:labelFile name

1.3.2 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 predicateValue
rdf:typeowl:ObjectProperty
rdfs:domainekg-story-impl-sparql:StorySPARQLImplementation
rdfs:labelSupports SPARQL Flavor
rdfs:labelSupports SPARQL Flavour
rdfs:rangeekg-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 predicateValue
rdf:typeowl:FunctionalProperty
rdf:typeowl:ObjectProperty
rdfs:domainekg-story-impl-sparql:StorySPARQLTemplateImplementation
rdfs:labelhas template
rdfs:rangeekg-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 predicateValue
rdf:typeowl:DatatypeProperty
rdf:typeowl:FunctionalProperty
rdfs:domainekg-story-impl-sparql:StorySPARQLImplementation
rdfs:labelSPARQL 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 predicateValue
rdf:typeowl:ObjectProperty
rdfs:domainekg-story-impl-sparql:TemplateRenderer
rdfs:labelsupports template language
rdfs:rangeekg-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 predicateValue
rdf:typeowl:DatatypeProperty
rdf:typeowl:FunctionalProperty
rdfs:domainekg-story-impl-sparql:StatementTemplate
rdfs:labeltemplate file name
rdfs:rangexsd: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 predicateValue
rdf:typeowl:DatatypeProperty
rdf:typeowl:FunctionalProperty
rdfs:domainekg-story-impl-sparql:StatementTemplate
rdfs:labeltemplate text
rdfs:rangexsd: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 predicateValue
rdf:typeowl:FunctionalProperty
rdf:typeowl:ObjectProperty
rdfs:domainekg-story-impl-sparql:StorySPARQLTemplateImplementation
rdfs:labeluses renderer
rdfs:rangeekg-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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseProduct
rdfs:labelAllegro 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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseVendor
rdfs:labelAmazon 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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseProduct
rdfs:labelAnzo 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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseProduct
rdfs:labelBlazegraph

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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseVendor
rdfs:labelCambridge 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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseProduct
rdfs:labelGraphDB

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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseProduct
rdfs:labelNeptune

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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseVendor
rdfs:labelOntotext

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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseVendor
rdfs:labelOxford 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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseProduct
rdfs:labelRD 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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseProduct
rdfs:labelStardog

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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseVendor
rdfs:labelStardog 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 predicateValue
rdf:typeowl:NamedIndividual
rdf:typeekg-story-impl-sparql:SPARQLDatabaseProduct
rdfs:labelVirtuoso

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 predicateValue
rdf:typesh:NodeShape
rdfs:labelStatement Template Shape
sh:nodeKindsh: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:targetClassekg-story-impl-sparql:StatementTemplate
sh:targetObjectsOfekg-story-impl-sparql:hasTemplate
sh:targetSubjectsOfekg-story-impl-sparql:templateFileName
sh:targetSubjectsOfekg-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 predicateValue
rdf:typesh:NodeShape
rdfs:labelStory SPARQL Template Implementation Shape
sh:nodeKindsh: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:targetClassekg-story-impl-sparql:StorySPARQLTemplateImplementation
sh:targetSubjectsOfekg-story-impl-sparql:hasTemplate
sh:targetSubjectsOfekg-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 predicateValue
rdf:typesh:NodeShape
rdfs:labelTemplate Renderer Shape
sh:nodeKindsh:BlankNodeOrIRI
sh:property(sh:class: ekg-concept:TemplateLanguage; sh:minCount: 1; sh:nodeKind: sh:IRI; sh:path: ekg-story-impl-sparql:supportsTemplateLanguage)
sh:targetClassekg-story-impl-sparql:TemplateRenderer
sh:targetObjectsOfekg-story-impl-sparql:usesRenderer
sh:targetSubjectsOfekg-story-impl-sparql:supportsTemplateLanguage

Document provenance

Search this specification