Commit 15007051 authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

version on the portal

parent fc27c2c4
Loading
Loading
Loading
Loading

example/example.ttl

0 → 100644
+64 −0
Original line number Diff line number Diff line
@prefix saref: <https://saref.etsi.org/saref#> .
@prefix s4syst: <https://saref.etsi.org/saref4syst#> .
@base <http://example.org/> .


<https://saref.etsi.org/saref4syst/example#> a owl:Ontology ;
  owl:imports <https://saref.etsi.org/saref#> .


# -- the instantiation of the SAREF4SYST pattern. --

s4syst-ex:ElectricPowerSystem a owl:Class ;
  rdfs:subClassOf s4syst:System ;
  rdfs:label "Electric Power System"@en ;
  rdfs:comment "The class of electric power systems."@en .


s4syst-ex:subElectricPowerSystemOf a owl:ObjectProperty ;
  rdfs:subPropertyOf s4syst:subSystemOf ;
  rdfs:label "sub electric power system of"@en .


# ...


# -- the instances --

<electric_vehicle> a s4syst:System .

<electric_vehicle_service_equipment> a s4syst:System .


# Connected systems interact in some ways. 
# The exact meaning of interact is defined by sub-properties of s4syst:connectedTo. 

<electric_vehicle> s4syst:connectedTo <electric_vehicle_service_equipment> .


# for example s4syst-ex:exchangesElectricityWith can be defined to specify that electric energy flows between the <electric_vehicle_service_equipment> and the electric vehicle <electric_vehicle>.

<electric_vehicle> s4syst-ex:exchangesElectricityWith <electric_vehicle_service_equipment> .

# A system can be a sub-system of another system.
<battery> s4syst:subSystemOf <electric_vehicle> .

# Properties of subsystems somehow contribute to the properties of the super system.
# The exact meaning of this contribution is defined by sub properties of s4syst:subSystemOf.

<fridge/1> s4syst-ex:subElectricPowerSystemOf <kitchen/1> .


# A connection between two s4syst:Systems, modelled by s4syst:connectedTo, 
# describes the potential interactions between connected s4syst:Systems. 
# A connection can be qualified using class s4syst:Connection.

<connection> s4syst:connectsSystem <electric_vehicle> , <electric_vehicle_service_equipment> .
  <electric_vehicle> s4syst:connectedThrough <connection> .
  <electric_vehicle_service_equipment> s4syst:connectedThrough <connection> .


# A s4syst:System connects to other s4syst:Systems at connection points. 
A connection point belongs to one and only one s4syst:System, and can be described using the class s4syst:ConnectionPoint.

<electric_vehicle> s4syst:connectsAt <plug_high_voltage> , <normal_plug> , <three_phase_connection_point> .
+152 −0
Original line number Diff line number Diff line
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix voaf: <http://purl.org/vocommons/voaf#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix s4syst: <https://saref.etsi.org/> .
@prefix gopi: <https://w3id.org/gopi/> .

<https://saref.etsi.org/saref4syst> rdf:type owl:Ontology  , voaf:Vocabulary ;
                                   dcterms:title "SAREF4SYST: an extension of SAREF for typology of systems and their inter-connections"@en ;
                                   dcterms:issued "2019-06-06"^^xsd:date ;
                                   dcterms:creator <http://maxime-lefrancois.info/me#> ;
                                   dcterms:publisher <https://www.etsi.org/> ;
                                   dcterms:description "SAREF4SYST is a generic extension of SAREF that defines ontology patterns which can then be instantiated for different domains. SAREF4SYST defines Systems, Connections between systems, and Connection Points at which systems may be connected. These core concepts can be used generically to define the topology of features of interest, and are specialized for multiple domains. This ontology patterns can be instantiated for different domains. For example to describe zones inside a building (systems), that share a frontier (connections). SAREF4SYST has two main aims: on the one hand, to extend SAREF with the capacility or representing general topology of systems and how they are connected or interact, and on the other hand, to exemplify how ontology patterns may help to ensure an homogeneous structure of the overall SAREF ontology and speed up the development of extensions. SAREF4SYST is specified and published by ETSI in the TS 103 548 associated to this ontology file."@en ;
                                   vann:preferredNamespacePrefix "saref" ;
                                   vann:preferredNamespaceUri "https://saref.etsi.org/" ;
                                   dcterms:license <http://purl.org/NET/rdflicense/cc-by4.0> ;
                                   dcterms:created "2019-04-26"^^xsd:date .

<http://maxime-lefrancois.info/me#> a foaf:Person ; 
  foaf:name    "Maxime Lefrançois" .

voaf:Vocabulary a owl:Class .
dcterms:title a owl:AnnotationProperty .
dcterms:issued a owl:AnnotationProperty .
dcterms:creator a owl:AnnotationProperty .
dcterms:publisher a owl:AnnotationProperty .
dcterms:description a owl:AnnotationProperty .
dcterms:license a owl:AnnotationProperty .
dcterms:created a owl:AnnotationProperty .
vann:preferredNamespacePrefix a owl:AnnotationProperty .
vann:preferredNamespaceUri a owl:AnnotationProperty .
foaf:Person a owl:Class .
foaf:name a owl:DatatypeProperty .
gopi:inModule a owl:AnnotationProperty .
gopi:Module a owl:Class .

# systems

s4syst:SystemModule a gopi:Module .

s4syst:System a owl:Class ;
  gopi:inModule s4syst:SystemModule ;
  rdfs:label "System"@en ;
  rdfs:comment """The class of systems, i.e., systems virtually isolated from the environment, whose behaviour and interactions with the environment are modeled. Systems can be connected to other systems. Connected systems interact in some ways. Systems can also have subsystems. Properties of subsystems somehow contribute to the properties of the supersystem."""@en .

s4syst:connectedTo a owl:ObjectProperty , owl:SymmetricProperty ;
  gopi:inModule s4syst:SystemModule ;
  rdfs:label "connected to"@en ;
  rdfs:comment """Links a system to a system it is connected to. Connected systems interact in some way. The exact meaning of "interact" is defined by sub properties of s4syst:connectedTo. Property s4syst:connectedTo is symmetric. This property can be qualified using class s4syst:Connection, which connects the two systems. If there is a connection between several systems, then one may infer these systems are pairwise connected."""@en ;
  rdfs:domain s4syst:System ;
  rdfs:range s4syst:System .

s4syst:subSystemOf a owl:ObjectProperty , owl:TransitiveProperty ;
  gopi:inModule s4syst:SystemModule ;
  rdfs:label "sub system of"@en ;
  rdfs:comment """Links a system to its super system. Properties of subsystems somehow contribute to the properties of the super system. The exact meaning of "contribute is defined by sub properties of s4syst:subSystemOf. Property s4syst:subSystemOf is transitive."""@en ;
  rdfs:domain s4syst:System ;
  rdfs:range s4syst:System ;
  owl:inverseOf s4syst:hasSubSystem .

s4syst:hasSubSystem a owl:ObjectProperty , owl:TransitiveProperty ;
  gopi:inModule s4syst:SystemModule ;
  rdfs:label "has sub system"@en ;
  rdfs:comment """Links a system to one of its sub systems."""@en ;
  rdfs:domain s4syst:System ;
  rdfs:range s4syst:System ;
  owl:inverseOf s4syst:subSystemOf .

# connections

s4syst:ConnectionModule a gopi:Module .

s4syst:Connection a owl:Class ;
  gopi:inModule s4syst:ConnectionModule ;
  rdfs:label "Connection"@en ;
  rdfs:comment """The class of connections between systems. This class qualifies property s4syst:connectedTo. A connection describes potential interactions between systems. Any two connected systems are connected through a connection. A connection can connect more than two systems at the same time."""@en ;
  rdfs:subClassOf [ owl:onProperty s4syst:connectsSystem ; owl:someValuesFrom  s4syst:System ] ;
  rdfs:subClassOf [ owl:onProperty s4syst:connectsSystemAt ; owl:someValuesFrom  s4syst:ConnectionPoint ] ;
  owl:disjointWith s4syst:System .

s4syst:connectsSystem a owl:ObjectProperty ;
  gopi:inModule s4syst:ConnectionModule ;
  rdfs:label "connects system"@en ;
  rdfs:comment "Links a connection to one of the systems it connects."@en ;
  rdfs:domain s4syst:Connection ;
  rdfs:range s4syst:System ;
  owl:inverseOf s4syst:connectedThrough .

s4syst:connectedThrough a owl:ObjectProperty ;
  gopi:inModule s4syst:ConnectionModule ;
  rdfs:label "connected through"@en ;
  rdfs:comment "Links a system to one of its connections to other systems."@en ;
  rdfs:domain s4syst:System ;
  rdfs:range s4syst:Connection ;
  owl:inverseOf s4syst:connectsSystem .

# s4syst:connectedTo owl:propertyChainAxiom ( s4syst:connectedThrough s4syst:connectsSystem ) .
# this axiom is not true: it would imply that every connected system is connected to itself

# connection points

s4syst:ConnectionPointModule a gopi:Module .

s4syst:ConnectionPoint a owl:Class ;
  gopi:inModule s4syst:ConnectionPointModule ;
  rdfs:label "Connection Point"@en ;
  rdfs:comment """The class of connection points of systems, at which they may be connected to other systems. This class qualifies properties s4syst:connectsSystem and s4syst:connectedThrough. A connection point belongs to exactly one system. Any system connected through a connection is connected at one of its connection points to the connection. The system of a connection point that is connected through a connection is itself connected through the connection."""@en ;
  rdfs:subClassOf [ owl:onProperty s4syst:connectionPointOf ; owl:cardinality 1 ] ;
  owl:disjointWith s4syst:System, s4syst:Connection .

s4syst:connectedThrough owl:propertyChainAxiom ( s4syst:connectsAt s4syst:connectsSystemThrough ) .
s4syst:connectsSystem owl:propertyChainAxiom ( s4syst:connectsSystemAt s4syst:connectionPointOf ) .

s4syst:connectsAt a owl:ObjectProperty, owl:InverseFunctionalProperty ;
  gopi:inModule s4syst:ConnectionPointModule ;
  rdfs:label "connects at"@en ;
  rdfs:comment "Links a system to one of the connection points at which it connects."@en ;
  rdfs:domain s4syst:System ;
  rdfs:range s4syst:ConnectionPoint ;
  owl:inverseOf s4syst:connectionPointOf .

s4syst:connectionPointOf a owl:ObjectProperty, owl:FunctionalProperty ;
  gopi:inModule s4syst:ConnectionPointModule ;
  rdfs:label "connection point to"@en ;
  rdfs:comment "Links a connection point to the one and only one system it belongs to."@en ;
  rdfs:domain s4syst:ConnectionPoint ;
  rdfs:range s4syst:System ;
  owl:inverseOf s4syst:connectsAt .

s4syst:connectsSystemAt a owl:ObjectProperty ;
  gopi:inModule s4syst:ConnectionPointModule ;
  rdfs:label "connects system at"@en ;
  rdfs:comment "Links a connection to one of the connection points at which it connects a system."@en ;
  rdfs:domain s4syst:Connection ;
  rdfs:range s4syst:ConnectionPoint ;
  owl:inverseOf s4syst:connectsSystemThrough .

s4syst:connectsSystemThrough a owl:ObjectProperty ;
  gopi:inModule s4syst:ConnectionPointModule ;
  rdfs:label "connects system through"@en ;
  rdfs:comment "Links a connection point to one of the connections through which it connects its system."@en ;
  rdfs:domain s4syst:ConnectionPoint ;
  rdfs:range s4syst:Connection ;
  owl:inverseOf s4syst:connectsSystemAt .