Annotation

IRI: http://draft.ottr.xyz/pizza/Annotation

Available formats

Specification

@prefix : <http://draft.ottr.xyz/pizza/Annotation#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix t-rdf: <http://candidate.ottr.xyz/rdf/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

http://draft.ottr.xyz/pizza/Annotation( :subject : 1 , <"label"^^xsd:string> : + , <"altLabel"^^xsd:string> : + , "prefLabel"^^xsd:string : 1 , <"comment"^^xsd:string> : + )
  ::
  X  | t-rdf:Triple( :subject , rdfs:label , <"label"^^xsd:string> )
  t-rdf:Triple( :subject , skos:prefLabel , "prefLabel"^^xsd:string )
  X  | t-rdf:Triple( :subject , rdfs:comment , <"comment"^^xsd:string> )
  X  | t-rdf:Triple( :subject , skos:altLabel , <"altLabel"^^xsd:string> ) .

Direct dependency templates

Templates instantiated in the body of this template:

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/pizza/Annotation#> .
@prefix skos:  <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .

:subject  rdfs:comment  "comment" ;
        rdfs:label      "label" ;
        skos:altLabel   "altLabel" ;
        skos:prefLabel  "prefLabel" .

Source

Raw source - http://draft.ottr.xyz/pizza/Annotation:

@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 skos:      <http://www.w3.org/2004/02/skos/core#> .

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

@prefix :          <http://draft.ottr.xyz/pizza/Annotation#> .

<http://draft.ottr.xyz/pizza/Annotation> a ottr:Template ;
  ottr:withVariables ( :subject ( "label" ) ( "altLabel") "prefLabel" ( "comment") )  .

[] ottr:templateRef <http://candidate.ottr.xyz/rdf/Triple> ;
   ottr:hasArgument
	[ ottr:index 1; ottr:value :subject ] ,
	[ ottr:index 2; ottr:value rdfs:label ] ,
	[ ottr:index 3; ottr:eachValue ( "label") ] .

[] ottr:templateRef <http://candidate.ottr.xyz/rdf/Triple> ;
   ottr:hasArgument
	[ ottr:index 1; ottr:value :subject ] ,
	[ ottr:index 2; ottr:value skos:altLabel ] ,
	[ ottr:index 3; ottr:eachValue ( "altLabel") ] .

[] ottr:templateRef <http://candidate.ottr.xyz/rdf/Triple> ;
   ottr:hasArgument
	[ ottr:index 1; ottr:value :subject ] ,
	[ ottr:index 2; ottr:value skos:prefLabel ] ,
	[ ottr:index 3; ottr:value "prefLabel"; ottr:optional true ] .

[] ottr:templateRef <http://candidate.ottr.xyz/rdf/Triple> ;
   ottr:hasArgument
	[ ottr:index 1; ottr:value :subject ] ,
	[ ottr:index 2; ottr:value rdfs:comment ] ,
	[ ottr:index 3; ottr:eachValue ( "comment") ] .