example

IRI: http://draft.ottr.xyz/o2/example

Available formats

Specification

@prefix : <http://draft.ottr.xyz/o2/example#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

http://draft.ottr.xyz/o2/example( :Class : 1 class , :annoProp : 1 annotationProperty , "value"^^xsd:string : 1 literal )
  ::
  ( :Class , rdf:type , owl:Class )
  ( :Class , :annoProp , "value"^^xsd:string )
  ( :annoProp , rdf:type , owl:AnnotationProperty ) .

Direct dependency templates

Templates instantiated in the body of this template:

This template contains no template instances.

Diagram of pattern

RDF graph visualisation of the expanded body:

Pattern

The pattern the template represents, i.e., the expanded template body.

@prefix :      <http://draft.ottr.xyz/o2/example#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:   <http://www.w3.org/2002/07/owl#> .

:Class  a          owl:Class ;
        :annoProp  "value" .

:annoProp  a    owl:AnnotationProperty .

Source

Raw source - http://draft.ottr.xyz/o2/example:

@prefix owl:       <http://www.w3.org/2002/07/owl#> .
@prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd:       <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> .

@prefix dc:        <http://purl.org/dc/terms/> .
@prefix skos:      <http://www.w3.org/2004/02/skos/core#> .
@prefix vann:      <http://purl.org/vocab/vann/> .

@prefix ottr:         <http://ns.ottr.xyz/templates#> .

@prefix : <http://draft.ottr.xyz/o2/example#> .

<http://draft.ottr.xyz/o2/example> a ottr:Template ;
    ottr:hasParameter :pClass, :pannoProp, :pValue .

:pClass      ottr:index 1;  ottr:classVariable  :Class .
:pannoProp   ottr:index 2;  ottr:annotationPropertyVariable  :annoProp .
:pValue      ottr:index 3;  ottr:literalVariable  "value" .

:Class  a owl:Class .
:annoProp a owl:AnnotationProperty .
:Class :annoProp "value" .