AnObjectsQuantityDatum.ttl

IRI: http://draft.ottr.xyz/p12/AnObjectsQuantityDatum.ttl

Available formats

Specification

@prefix : <http://draft.ottr.xyz/p12/AnObjectsQuantityDatum.ttl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix up: <http://example.org/upper-ontology#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

http://draft.ottr.xyz/p12/AnObjectsQuantityDatum.ttl( _:b1 : 1 individual , :hasQuality1 : 1 objectProperty , :Quantity : 1 class , :Datum : 1 class , _:b2 : 1 individual , "aValue"^^xsd:string : 1 literal )
  ::
  http://draft.ottr.xyz/p12/QuantityDatum.ttl( :Quantity , :Datum )
  ( _:b3 , rdf:type , :Quantity )
  ( _:b3 , up:qualityMeasuredAs , _:b4 )
  ( _:b4 , rdf:type , :Datum )
  ( _:b4 , up:datumUOM , _:b2 )
  ( _:b4 , up:datumValue , "aValue"^^xsd:string )
  ( _:b1 , :hasQuality1 , _:b3 ) .

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/p12/AnObjectsQuantityDatum.ttl#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix up:    <http://example.org/upper-ontology#> .

:Quantity  rdfs:subClassOf  up:PhysicalQuantity .

:Datum  rdfs:subClassOf  up:ScalarQuantityDatum .

[ :hasQuality1  [ a                     :Quantity ;
                  up:qualityMeasuredAs  [ a              :Datum ;
                                          up:datumUOM    []  ;
                                          up:datumValue  "aValue"
                                        ]
                ] ] .

Source

Raw source - http://draft.ottr.xyz/p12/AnObjectsQuantityDatum.ttl:

@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 ottr:  <http://ns.ottr.xyz/templates#> .

@prefix up:   <http://example.org/upper-ontology#> .

@prefix :    <http://draft.ottr.xyz/p12/AnObjectsQuantityDatum.ttl#> .

<http://draft.ottr.xyz/p12/AnObjectsQuantityDatum.ttl> rdf:type ottr:Template ;
  ottr:hasParameter :anObject ,
	       :hasQuality ,
	       :MyQuantity ,
	       :MyDatum ,
	       :aUOM ,
	       :aValue .

:anObject     ottr:index 1; ottr:individualVariable       _:anObject .
:hasQuality   ottr:index 2; ottr:objectPropertyVariable   :hasQuality1 .
:MyQuantity   ottr:index 3; ottr:classVariable            :Quantity .
:MyDatum      ottr:index 4; ottr:classVariable            :Datum .
:aUOM         ottr:index 5; ottr:individualVariable       _:aUOM .
:aValue       ottr:index 6; ottr:literalVariable          "aValue" .

# template calls
[ ] a ottr:TemplateInstance ; 
    ottr:templateRef <http://draft.ottr.xyz/p12/QuantityDatum.ttl> ;
    ottr:withValues ( :Quantity :Datum ) .

# freshs
_:aQuality rdf:type :Quantity .
_:aDatum   rdf:type :Datum .

# pattern
_:anObject  :hasQuality1          _:aQuality .
_:aQuality  up:qualityMeasuredAs  _:aDatum .
_:aDatum    up:datumUOM           _:aUOM .
_:aDatum    up:datumValue         "aValue" .