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

added waste extension and draft of script to generate ts

parent 1c322dac
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3,3 +3,4 @@
catalog-v001.xml
saref-pipeline.jar
target
ts
 No newline at end of file

disable.gitlab-ci.yml

deleted100644 → 0
+0 −77
Original line number Diff line number Diff line
# image: openjdk:8-jdk

# variables:
#     SAREF_DEV_KEY: <my_private_key>
#     SAREF_PORTAL_KEY: <my_private_key>

# before_script:
#   - eval $(ssh-agent -s)
#   - ssh-add <(echo "$SAREF_DEV_KEY")
#   - mkdir -p ~/.ssh
#   - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'

# stages:
#   - test
#   - build
#   - deploy

# test-develop:
#   stage: test
#   script:
#     - curl -L -o saref-pipeline.jar "https://saref.etsi.org/downloads/saref-pipeline.jar"
#     - java -jar saref-pipeline.jar develop -s && touch target/success
#   allow_failure: true
#   except:
#     - /^prerelease-v/
#     - /^release-v/
#   artifacts:
#     when: always
#     paths:
#       - target/site
#       - target/success
#     reports:
#       junit: target/report_output.xml

# test-prerelease:
#   stage: test
#   script:
#     - curl -L -o saref-pipeline.jar "https://saref.etsi.org/downloads/saref-pipeline.jar"
#     - java -jar saref-pipeline.jar release -t && touch target/success
#   allow_failure: true
#   only:
#     - /^prerelease-v/
#   artifacts:
#     when: always
#     paths:
#       - target/site
#       - target/success
#     reports:
#       junit: target/report_output.xml

# deploy-report:
#   stage: deploy
#   script:
#     - scp -pr target/site saref-dev@saref.etsi.org:~/snapshot/$CI_PIPELINE_ID
#     - echo "SAREF pipeline report  https://saref.etsi.org/snapshot/$CI_PIPELINE_ID/report.html" 
#     - exit $(test -f target/success) $?
#   except:
#     - /^release-v/

# test-release:
#   stage: test
#   script:
#     - curl -L -o saref-pipeline.jar "https://saref.etsi.org/downloads/saref-pipeline.jar"
#     - java -jar saref-pipeline.jar release -t
#   only:
#     - /^release-v/

# trigger-release:
#   stage: deploy
#   only:
#     - /^release-v/
#   variables:
#     SAREF_DEV_KEY: $SAREF_DEV_KEY
#     SAREF_PORTAL_KEY: $SAREF_PORTAL_KEY
#   trigger:
#     project: saref/saref-portal
#     branch: master
+354 −28
Original line number Diff line number Diff line
@@ -36,10 +36,6 @@ dcterms:source <https://saref.etsi.org/sources/saref4envi/> ;
rdfs:seeAlso <https://www.etsi.org/deliver/etsi_ts/103400_103499/10341002/02.01.01_60/ts_10341002v020101p.pdf> ;
  owl:versionInfo "v2.1.1" .

#################################################################
#    Annotation properties
#################################################################

dcterms:issued a owl:AnnotationProperty .
dcterms:modified a owl:AnnotationProperty .
dcterms:source a owl:AnnotationProperty .
@@ -52,9 +48,28 @@ vann:preferredNamespacePrefix a owl:AnnotationProperty .
vann:preferredNamespaceUri a owl:AnnotationProperty .


#################################################################
#    Digital Representations
#################################################################
###  http://www.opengis.net/ont/geosparql#Feature
geo:Feature rdf:type owl:Class .


###  http://www.opengis.net/ont/geosparql#Geometry
geo:Geometry rdf:type owl:Class .


###  http://www.w3.org/2006/time#DayOfWeek
<http://www.w3.org/2006/time#DayOfWeek> rdf:type owl:Class .


###  http://www.w3.org/ns/org#Site
<http://www.w3.org/ns/org#Site> rdf:type owl:Class .





#* General additions to SAREF

##* Digital Representations

:DigitalRepresentation a owl:Class ;
  rdfs:comment "A digital representation encapsulates a physical object accessible via Web services"@en ;
@@ -86,9 +101,7 @@ vann:preferredNamespaceUri a owl:AnnotationProperty .
  rdfs:label "has tag"@en .


#################################################################
#    Communication interfaces and communication protocols
#################################################################
##* Communication interfaces and communication protocols

:CommunicationInterface a owl:Class ;
  rdfs:subClassOf s4syst:ConnectionPoint ;
@@ -126,9 +139,7 @@ vann:preferredNamespaceUri a owl:AnnotationProperty .
# # a device inherits the kinds of its communication protocol
# :usesCommunicationProtocol owl:propertyChainAxiom ( :usesCommunicationProtocol saref:hasFeatureKind ) .

#################################################################
#    Generic properties
#################################################################
##* Generic properties

:Frequency a saref:Property ;
  rdfs:comment "An individual representing the property frequency."@en ;
@@ -153,10 +164,9 @@ vann:preferredNamespaceUri a owl:AnnotationProperty .
  rdfs:label "transmission period"@en .


#* Application of the SAREF patterns

#################################################################
#    Light Properties
#################################################################
##* Lighting Domain

:LightProperty a owl:Class ;
  rdfs:subClassOf saref:Property ;
@@ -204,9 +214,7 @@ vann:preferredNamespaceUri a owl:AnnotationProperty .
  rdfs:label "Color"@en .


#################################################################
#    Light
#################################################################
###* Light

:Light a saref:FeatureKind ;
  saref:hasProperty :Color , :Geometry , :LightProjectionHeight , :LightProjectionDirection ;
@@ -232,9 +240,7 @@ vann:preferredNamespaceUri a owl:AnnotationProperty .
  rdfs:label "Flashing Light"@en .


#################################################################
#    Light Point
#################################################################
###* Light Point

:LightPoint a saref:FeatureKind ;
  :projectsLight :Light ;
@@ -249,9 +255,8 @@ vann:preferredNamespaceUri a owl:AnnotationProperty .
    [ a owl:Class ; owl:onProperty saref:hasFeatureKind ; owl:hasValue :LightPoint ] # things of this kind 
  ) ] .

#################################################################
#    Lamppost
#################################################################
###* Lamppost
#- Figure: SAREF4ENVI_figures-Lamppost.drawio.png

:Lamppost a saref:DeviceKind ;
  :hasLightPoint :LightPoint ;
@@ -297,9 +302,7 @@ vann:preferredNamespaceUri a owl:AnnotationProperty .
  rdfs:label "projects light"@en .


#################################################################
#    Photometer and TESS
#################################################################
###*  Photometer and TESS

:Photometer a saref:SensorKind ;
  saref:observes :Illuminance , :Irradiance , :LightAbsorption , :ScatteringOfLight , :ReflectionOfLight , :Fluorescence , :Phosphorescence , :LightMagnitude , :Luminescence , :Color ;
@@ -310,3 +313,326 @@ vann:preferredNamespaceUri a owl:AnnotationProperty .
  skos:broader :Photometer ;
  rdfs:comment "The Telescope Encoder and Sky Sensor (TESS) is a Sky Brightness and Cloud detector developed as a device for a remote observatory. A TESS can observe the light magnitude and other properties as ambient temperature and sky temperature."@en ;
  rdfs:label "TESS (Telescope Encoder and Sky Sensor)"@en .




##* Waste Management domain

###* Waste

@prefix : <https://saref.etsi.org/saref4envi/> .
@prefix geo: <http://www.opengis.net/ont/geosparql#> .
@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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix saref: <https://saref.etsi.org/core/> .
@prefix vcard: <https://www.w3.org/2006/vcard/ns#> .
@prefix s4envi: <https://saref.etsi.org/saref4envi/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@base <https://saref.etsi.org/saref4envi/> .

dcterms:contributor rdf:type owl:AnnotationProperty .
dcterms:creator rdf:type owl:AnnotationProperty .


dcterms:description rdf:type owl:AnnotationProperty .


dcterms:issued rdf:type owl:AnnotationProperty .


dcterms:license rdf:type owl:AnnotationProperty .


dcterms:modified rdf:type owl:AnnotationProperty .


dcterms:publisher rdf:type owl:AnnotationProperty .


dcterms:source rdf:type owl:AnnotationProperty .


dcterms:title rdf:type owl:AnnotationProperty .


vann:preferredNamespacePrefix rdf:type owl:AnnotationProperty .


vann:preferredNamespaceUri rdf:type owl:AnnotationProperty .



geo:hasGeometry rdf:type owl:ObjectProperty .


s4envi:accepts rdf:type owl:ObjectProperty ;
               rdfs:domain s4envi:Container ;
               rdfs:range s4envi:WasteKind ;
               rdfs:label "accepts"@en .


s4envi:isDepositedIn rdf:type owl:ObjectProperty ;
                     rdfs:domain s4envi:Waste ;
                     rdfs:range s4envi:Container ;
                     rdfs:label "is deposited in"@en .


s4envi:isProducedBy rdf:type owl:ObjectProperty ;
                    rdfs:domain s4envi:Waste ;
                    rdfs:range s4envi:WasteProducer ;
                    rdfs:label "is produced by"@en .


s4envi:producesWasteKind rdf:type owl:ObjectProperty ;
                         rdfs:domain s4envi:WasteProducer ;
                         rdfs:range s4envi:WasteKind ;
                         rdfs:label "produces waste kind"@en .


s4envi:serves rdf:type owl:ObjectProperty ;
              rdfs:domain s4envi:Container ;
              rdfs:range s4envi:Perimeter ;
              rdfs:label "serves"@en .


vcard:hasAddress rdf:type owl:ObjectProperty .



geo:Feature rdf:type owl:Class .


geo:Geometry rdf:type owl:Class .


<http://xmlns.com/foaf/0.1/Agent> rdf:type owl:Class .


s4envi:Building rdf:type owl:Class ;
                rdfs:subClassOf s4envi:Perimeter ,
                                [ rdf:type owl:Restriction ;
                                  owl:onProperty vcard:hasAddress ;
                                  owl:maxQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
                                  owl:onClass vcard:Address
                                ] ;
                rdfs:label "Building"@en .


s4envi:CollectionOfBuildings rdf:type owl:Class ;
                             rdfs:subClassOf s4envi:Perimeter ,
                                             [ rdf:type owl:Restriction ;
                                               owl:onProperty saref:consistsOf ;
                                               owl:allValuesFrom s4envi:Building
                                             ] ;
                             rdfs:label "Collection of buildings"@en .


s4envi:CommercialBuilding rdf:type owl:Class ;
                          rdfs:subClassOf s4envi:Building ;
                          rdfs:label "Commercial building"@en .


s4envi:Container rdf:type owl:Class ;
                 rdfs:subClassOf geo:Feature ,
                                 saref:FeatureOfInterest ,
                                 [ rdf:type owl:Restriction ;
                                   owl:onProperty s4envi:accepts ;
                                   owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ;
                                   owl:onClass s4envi:WasteKind
                                 ] ,
                                 [ rdf:type owl:Restriction ;
                                   owl:onProperty s4envi:serves ;
                                   owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
                                   owl:onClass s4envi:Perimeter
                                 ] ;
                 rdfs:label "Container"@en .


s4envi:ContainerKind rdf:type owl:Class ;
                     rdfs:subClassOf saref:FeatureKind ;
                     rdfs:label "Container kind"@en .


s4envi:Household rdf:type owl:Class ;
                 rdfs:subClassOf s4envi:Building ;
                 rdfs:label "Household"@en .


s4envi:Neighbourhood rdf:type owl:Class ;
                     rdfs:subClassOf s4envi:Perimeter ;
                     rdfs:label "Neighbourhood"@en .


s4envi:Perimeter rdf:type owl:Class ;
                 rdfs:subClassOf geo:Feature ,
                                 saref:FeatureOfInterest ;
                 rdfs:label "Perimeter"@en .


s4envi:ResidentialBuilding rdf:type owl:Class ;
                           rdfs:subClassOf s4envi:Building ;
                           rdfs:label "Residential building"@en .


s4envi:Resource rdf:type owl:Class ;
                rdfs:subClassOf geo:Feature ,
                                saref:FeatureOfInterest ;
                rdfs:label "Resource"@en .


s4envi:ResourceKind rdf:type owl:Class ;
                    rdfs:subClassOf saref:FeatureKind ;
                    rdfs:label "Resource kind"@en .


s4envi:Waste rdf:type owl:Class ;
             rdfs:subClassOf s4envi:Resource ,
                             [ rdf:type owl:Restriction ;
                               owl:onProperty s4envi:isDepositedIn ;
                               owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
                               owl:onClass s4envi:Container
                             ] ,
                             [ rdf:type owl:Restriction ;
                               owl:onProperty s4envi:isProducedBy ;
                               owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
                               owl:onClass s4envi:Perimeter
                             ] ;
             rdfs:label "Waste"@en ;
             rdfs:comment "example comment"@en .


s4envi:WasteKind rdf:type owl:Class ;
                 rdfs:subClassOf s4envi:ResourceKind ;
                 rdfs:label "Waste kind"@en .


s4envi:WasteProducer rdf:type owl:Class ;
                     rdfs:subClassOf <http://xmlns.com/foaf/0.1/Agent> ,
                                     saref:FeatureOfInterest ;
                     rdfs:label "Waste producer"@en .


vcard:Address rdf:type owl:Class .



s4envi:BiodegradableWaste rdf:type owl:NamedIndividual ,
                                   s4envi:WasteKind ;
                          skos:narrower s4envi:FoodWaste ,
                                        s4envi:GardenParkWaste ;
                          rdfs:label "Biodegradable waste"@en .


s4envi:CommercialBuildingContainer rdf:type owl:NamedIndividual ,
                                            s4envi:ContainerKind ;
                                   rdfs:label "Commercial building container"@en .


s4envi:ConcreteConstructionWaste rdf:type owl:NamedIndividual ,
                                          s4envi:WasteKind ;
                                 rdfs:label "Concrete construction waste"@en .


s4envi:ConstructionWaste rdf:type owl:NamedIndividual ,
                                  s4envi:WasteKind ;
                         skos:narrower s4envi:ConcreteConstructionWaste ,
                                       s4envi:WoodConstructionWaste ;
                         rdfs:label "Construction waste"@en .


s4envi:FoodWaste rdf:type owl:NamedIndividual ,
                          s4envi:WasteKind ;
                 rdfs:label "Food waste"@en .


s4envi:GardenParkWaste rdf:type owl:NamedIndividual ,
                                s4envi:WasteKind ;
                       rdfs:label "Garden and park waste"@en .


s4envi:GlassWaste rdf:type owl:NamedIndividual ,
                           s4envi:WasteKind ;
                  rdfs:label "Glass waste"@en .


s4envi:HouseholdWaste rdf:type owl:NamedIndividual ,
                               s4envi:WasteKind ;
                      rdfs:label "Household waste"@en .


s4envi:IndividualHouseholdContainer rdf:type owl:NamedIndividual ,
                                             s4envi:ContainerKind ;
                                    rdfs:label "Individual household container"@en .


s4envi:Mass rdf:type owl:NamedIndividual ,
                     saref:Property ;
            rdfs:label "Mass"@en .


s4envi:MassCapacity rdf:type owl:NamedIndividual ,
                             saref:Property ;
                    rdfs:label "Mass capacity"@en .


s4envi:PaperCardboardWaste rdf:type owl:NamedIndividual ,
                                    s4envi:WasteKind ;
                           rdfs:label "Paper and cardboard waste"@en .


s4envi:PlasticWaste rdf:type owl:NamedIndividual ,
                             s4envi:WasteKind ;
                    rdfs:label "Plastic waste"@en .


s4envi:Population rdf:type owl:NamedIndividual ,
                           saref:Property ;
                  rdfs:label "Population"@en .


s4envi:SharedResidentialBuildingContainer rdf:type owl:NamedIndividual ,
                                                   s4envi:ContainerKind ;
                                          rdfs:label "Shared residential building container"@en .


s4envi:TextileWaste rdf:type owl:NamedIndividual ,
                             s4envi:WasteKind ;
                    rdfs:label "Textile waste"@en .


s4envi:Volume rdf:type owl:NamedIndividual ,
                       saref:Property ;
              rdfs:label "Volume"@en .


s4envi:VoluntaryDropOffContainer rdf:type owl:NamedIndividual ,
                                          s4envi:ContainerKind ;
                                 rdfs:label "Voluntary drop-off container"@en .


s4envi:WoodConstructionWaste rdf:type owl:NamedIndividual ,
                                      s4envi:WasteKind ;
                             rdfs:label "Wood construction waste"@en .


s4envi:WoodWaste rdf:type owl:NamedIndividual ,
                          s4envi:WasteKind ;
                 rdfs:label "Wood waste"@en .

s4envi:VolumeCapacity rdf:type owl:NamedIndividual ,
                               saref:Property ;
                      rdfs:label "Volume capacity"@en .



s4envi:WasteGenerationRate rdf:type owl:NamedIndividual ,
                                    saref:Property ;
                           rdfs:label "Waste generation rate"@en .

scripts/debug/.gitkeep

0 → 100644
+0 −0

Empty file added.

scripts/stub.docx

0 → 100644
+1.1 MiB

File added.

No diff preview for this file type.

Loading