Pattern stOTTR 🛈 stOTTR serialisation of the template without annotation instances.
o-owl-dec:Ontology[
ottr:IRI ?ontology,
!? xsd:string ?versionInfo,
!? xsd:string ?label,
!? xsd:string ?comment,
? List<rdfs:Resource> ?seeAlso,
? NEList<ottr:IRI> ?imports
] :: {
ottr:Triple(?ontology, owl:versionInfo, ?versionInfo),
cross | ottr:Triple(?ontology, owl:imports, ++?imports),
<http://tpl.ottr.xyz/rdfs/0.2/TypedResourceDescription>(?ontology, owl:Ontology, ?label, ?comment, ?seeAlso, none)
} . 🛈 The pattern of the template is illustrated by expanding a generated instance. Below the generated instance is shown in different serialisations, and its expansion is presented in different formats.
Generated instance stOTTR o-owl-dec:Ontology(x:argument1, _:argument2, _:argument3, _:argument4, (_:argument5-1, _:argument5-2), (x:argument6-1, x:argument6-2)) RDF/wOTTR
[ ottr:of o-owl-dec:Ontology ;
ottr:values ( x:argument1
[]
[]
[]
( []
[]
)
( x:argument6-1 x:argument6-2 )
)
] . Visualisation of expanded RDF graph 🛈 Each resource node is linked to its IRI. Type relationships are not visualised, rather each node contains its type.
Hierarchical horizontal layout (dot)
%3
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>
owl:Ontology
x:argument1
argument2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument2 : LUB<rdfs:Resource>
owl:versionInfo
argument3 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument3 : LUB<rdfs:Resource>
rdfs:label
argument5-1 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-1 : LUB<rdfs:Resource>
rdfs:seeAlso
argument5-2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-2 : LUB<rdfs:Resource>
rdfs:seeAlso
argument4 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument4 : LUB<rdfs:Resource>
rdfs:comment
http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
x:argument6-1
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
owl:imports
http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
x:argument6-2
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
owl:imports
Hierarchical vertical layout (dot)
%3
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>
owl:Ontology
x:argument1
argument2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument2 : LUB<rdfs:Resource>
owl:versionInfo
argument3 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument3 : LUB<rdfs:Resource>
rdfs:label
argument5-1 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-1 : LUB<rdfs:Resource>
rdfs:seeAlso
argument5-2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-2 : LUB<rdfs:Resource>
rdfs:seeAlso
argument4 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument4 : LUB<rdfs:Resource>
rdfs:comment
http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
x:argument6-1
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
owl:imports
http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
x:argument6-2
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
owl:imports
Spring model layout (neato)
%3
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>
owl:Ontology
x:argument1
argument2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument2 : LUB<rdfs:Resource>
owl:versionInfo
argument3 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument3 : LUB<rdfs:Resource>
rdfs:label
argument5-1 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-1 : LUB<rdfs:Resource>
rdfs:seeAlso
argument5-2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-2 : LUB<rdfs:Resource>
rdfs:seeAlso
argument4 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument4 : LUB<rdfs:Resource>
rdfs:comment
http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
x:argument6-1
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
owl:imports
http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
x:argument6-2
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
owl:imports
Spring model layout (fdp)
%3
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>
owl:Ontology
x:argument1
argument2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument2 : LUB<rdfs:Resource>
owl:versionInfo
argument3 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument3 : LUB<rdfs:Resource>
rdfs:label
argument5-1 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-1 : LUB<rdfs:Resource>
rdfs:seeAlso
argument5-2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-2 : LUB<rdfs:Resource>
rdfs:seeAlso
argument4 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument4 : LUB<rdfs:Resource>
rdfs:comment
http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
x:argument6-1
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
owl:imports
http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
x:argument6-2
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
owl:imports
Radial layout (twopi)
%3
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>
owl:Ontology
x:argument1
argument2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument2 : LUB<rdfs:Resource>
owl:versionInfo
argument3 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument3 : LUB<rdfs:Resource>
rdfs:label
argument5-1 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-1 : LUB<rdfs:Resource>
rdfs:seeAlso
argument5-2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-2 : LUB<rdfs:Resource>
rdfs:seeAlso
argument4 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument4 : LUB<rdfs:Resource>
rdfs:comment
http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
x:argument6-1
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
owl:imports
http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
x:argument6-2
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
owl:imports
Circular layout (circo)
%3
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>
owl:Ontology
x:argument1
argument2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument2 : LUB<rdfs:Resource>
owl:versionInfo
argument3 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument3 : LUB<rdfs:Resource>
rdfs:label
argument5-1 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-1 : LUB<rdfs:Resource>
rdfs:seeAlso
argument5-2 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument5-2 : LUB<rdfs:Resource>
rdfs:seeAlso
argument4 : LUB<rdfs:Resource>
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->argument4 : LUB<rdfs:Resource>
rdfs:comment
http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
x:argument6-1
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-1 : LUB<ottr:IRI>
owl:imports
http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
x:argument6-2
http://example.ottr.xyz/argument/argument1 : LUB<ottr:IRI>->http://example.ottr.xyz/argument/argument6-2 : LUB<ottr:IRI>
owl:imports
Expanded RDF graph
x:argument1 rdf:type owl:Ontology ;
rdfs:comment [] ;
rdfs:label [] ;
rdfs:seeAlso [] ;
rdfs:seeAlso [] ;
owl:imports x:argument6-2 , x:argument6-1 ;
owl:versionInfo [] . Interactive expansion 🛈 Click the list to expand/contract one list element. Click 'expand/contact all' to expand/contract all elements. Note that the interactive expansion is not correct for instances that are marked by list expanders.
o-owl-dec:Ontology(x:argument1, _:argument2, _:argument3, _:argument4, (_:argument5-1, _:argument5-2), (x:argument6-1, x:argument6-2))
ottr:Triple(x:argument1, owl:versionInfo, _:argument2)
cross | ottr:Triple(x:argument1, owl:imports, ++(x:argument6-1, x:argument6-2))
<http://tpl.ottr.xyz/rdfs/0.2/TypedResourceDescription>(x:argument1, owl:Ontology, _:argument3, _:argument4, (_:argument5-1, _:argument5-2), none)
o-rdf:Type(x:argument1, owl:Ontology)
ottr:Triple(x:argument1, rdf:type, owl:Ontology)
<http://tpl.ottr.xyz/rdfs/0.2/ResourceDescription>(x:argument1, _:argument3, _:argument4, (_:argument5-1, _:argument5-2), none)
ottr:Triple(x:argument1, rdfs:isDefinedBy, none)
cross | ottr:Triple(x:argument1, rdfs:seeAlso, ++(_:argument5-1, _:argument5-2))
ottr:Triple(x:argument1, rdfs:comment, _:argument4)
<http://tpl.ottr.xyz/rdfs/0.2/Label>(x:argument1, _:argument3)
ottr:Triple(x:argument1, rdfs:label, _:argument3)
Serialisations stOTTR o-owl-dec:Ontology[
ottr:IRI ?ontology,
!? xsd:string ?versionInfo,
!? xsd:string ?label,
!? xsd:string ?comment,
? List<rdfs:Resource> ?seeAlso,
? NEList<ottr:IRI> ?imports
] :: {
ottr:Triple(?ontology, owl:versionInfo, ?versionInfo),
cross | ottr:Triple(?ontology, owl:imports, ++?imports),
<http://tpl.ottr.xyz/rdfs/0.2/TypedResourceDescription>(?ontology, owl:Ontology, ?label, ?comment, ?seeAlso, none)
} . RDF/wOTTR
o-owl-dec:Ontology rdf:type ottr:Template ;
ottr:parameters ( [ ottr:type ottr:IRI ;
ottr:variable _:b0
]
[ ottr:modifier ottr:nonBlank , ottr:optional ;
ottr:type xsd:string ;
ottr:variable _:b1
]
[ ottr:modifier ottr:nonBlank , ottr:optional ;
ottr:type xsd:string ;
ottr:variable _:b2
]
[ ottr:modifier ottr:nonBlank , ottr:optional ;
ottr:type xsd:string ;
ottr:variable _:b3
]
[ ottr:modifier ottr:optional ;
ottr:type ( rdf:List rdfs:Resource ) ;
ottr:variable _:b4
]
[ ottr:modifier ottr:optional ;
ottr:type ( ottr:NEList ottr:IRI ) ;
ottr:variable _:b5
]
) ;
ottr:pattern [ ottr:arguments ( [ ottr:value _:b0 ]
[ ottr:value owl:imports ]
[ ottr:modifier ottr:listExpand ;
ottr:value _:b5
]
) ;
ottr:modifier ottr:cross ;
ottr:of ottr:Triple
] ;
ottr:pattern [ ottr:of <http://tpl.ottr.xyz/rdfs/0.2/TypedResourceDescription> ;
ottr:values ( _:b0
owl:Ontology
_:b2
_:b3
_:b4
ottr:none
)
] ;
ottr:pattern [ ottr:of ottr:Triple ;
ottr:values ( _:b0
owl:versionInfo
_:b1
)
] .