AnObjectsMassInKilogram.ttl

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

Available formats

Specification

@prefix dom: <http://example.org/domain-ontology#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

http://draft.ottr.xyz/p12/AnObjectsMassInKilogram.ttl( _:b1 : 1 individual , "aValue"^^xsd:string : 1 literal )
  ::
  http://draft.ottr.xyz/p12/AnObjectsQuantityDatum.ttl( _:b1 , dom:hasMass , dom:Mass , dom:MassQuantityDatum , dom:kilogram , "aValue"^^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 dom:   <http://example.org/domain-ontology#> .
@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#> .

dom:Mass  rdfs:subClassOf  up:PhysicalQuantity .

[ dom:hasMass  [ a                     dom:Mass ;
                 up:qualityMeasuredAs  [ a              dom:MassQuantityDatum ;
                                         up:datumUOM    []  ;
                                         up:datumValue  "aValue"
                                       ]
               ] ] .

dom:MassQuantityDatum
        rdfs:subClassOf  up:ScalarQuantityDatum .

Source

Raw source - http://draft.ottr.xyz/p12/AnObjectsMassInKilogram.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 dom:  <http://example.org/domain-ontology#> .
@prefix up:   <http://example.org/upper-ontology#> .

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


<http://draft.ottr.xyz/p12/AnObjectsMassInKilogram.ttl> rdf:type ottr:Template ;
  ottr:hasParameter :anObject , :aValue .

:anObject     ottr:index 1; ottr:individualVariable       _:anObject .
:aValue       ottr:index 2; ottr:literalVariable          "aValue" .

# template calls
[ ] a ottr:TemplateInstance ; 
    ottr:templateRef <http://draft.ottr.xyz/p12/AnObjectsQuantityDatum.ttl> ;
    ottr:withValues ( _:anObject dom:hasMass dom:Mass dom:MassQuantityDatum  dom:kilogram "aValue"  ) .