# Auto-generated from iotic-rdf-ontology repository, iotics/app. Edits will be overwritten!

PREFIX app:     <https://data.iotics.com/app#>
PREFIX iotics:  <http://data.iotics.com/iotics#>
PREFIX rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs:    <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd:     <http://www.w3.org/2001/XMLSchema#>



app:Model rdf:type rdfs:Class ;
    rdfs:subClassOf iotics:DigitalTwin ;
    rdfs:label "Digital Twin Model"@en ;
    rdfs:comment "A template for creating digital twins with the same feeds and properties"@en ;
.

app:model rdf:type rdf:Property ;
    rdfs:label "Twin model";
    rdfs:comment "Model from which the twin was created" ;
    rdfs:domain iotics:DigitalTwin ;
    rdfs:range app:Model ;
.

app:createdBy rdf:type rdf:Property ;
    rdfs:label "Created by"@en ;
    rdfs:comment "Name of user who created the twin"@en ;
    rdfs:domain iotics:DigitalTwin ;
    rdfs:range xsd:string ;
.

app:updatedBy rdf:type rdf:Property ;
    rdfs:label "Updated by"@en ;
    rdfs:comment "Name of user who updated the twin"@en ;
    rdfs:domain iotics:DigitalTwin ;
    rdfs:range xsd:string ;
.

# app:createdFrom rdf:type rdf:Property ;
#     rdfs:label "Created from"@en ;
#     rdfs:comment "How the twin was created"@en ;
#     rdfs:domain iotics:DigitalTwin ;
#     rdfs:range app:TwinCreationMeans ;
# .

app:spaceName rdf:type rdf:Property ;
    rdfs:label "Space name"@en ;
    rdfs:comment "User-friendly name of the space the model belongs to"@en ;
    rdfs:domain app:Model ;
    rdfs:range xsd:string ;
.

app:spaceUrl rdf:type rdf:Property ;
    rdfs:label "Space URL"@en ;
    rdfs:comment "URL name of the space the model belongs to"@en ;
    rdfs:domain app:Model ;
    rdfs:range xsd:string ;
.

app:color rdf:type rdf:Property ;
    rdfs:label "Color"@en ;
    rdfs:comment "Hex color of the portal representation of this model's twins"@en ;
    rdfs:domain app:Model ;
    rdfs:range xsd:string ;
.

app:defines rdf:type rdf:Property ;
    rdfs:label "Defines"@en ;
    rdfs:comment "The URI of the model this twin describes (a Model instance defined in another ontology)"@en ;
    rdfs:domain app:Model ;
    rdfs:range app:Model ;
.

# app:TwinCreationMeans rdf:type rdfs:Class ;
#     rdfs:label "Twin creation means"@en ;
#     rdfs:comment "Way of making a digital twin"@en ;
# .

# app:ByCloudApp rdf:type app:TwinCreationMeans ;
#     rdfs:label "By cloud app"@en ;
#     rdfs:comment "Created using the Iotics Cloud Application" ;
# .

# app:ByModel rdf:type app:TwinCreationMeans ;
#     rdfs:label "By model"@en ;
#     rdfs:comment "Created from a Digital Twin Model"@en ;
# .

# app:ByPublicConnector rdf:type app:TwinCreationMeans ;
#     rdfs:label "By public connector"@en ;
#     rdfs:comment "Created using a public connector"@en ;
# .

app:Application rdf:type rdfs:Class ;
    rdfs:label "Application"@en ;
    rdfs:comment "User application"@en ;
.

app:applicationId rdf:type rdf:Property ;
    rdfs:label "Application ID"@en ;
    rdfs:comment "Unique identifier for an application"@en ;
    rdfs:domain app:Application ;
    rdfs:range xsd:string ;
.

app:dataSource rdf:type rdf:Property ;
    rdfs:label "has Data Source Twin" ;
    rdfs:comment "ID of twin providing data to this application" ;
    rdfs:domain app:Application ;
    rdfs:range iotics:DigitalTwin ;
.

# Hack for EI-755 quick fix
iotics:DigitalTwin
    rdf:type rdfs:Class ;
    rdfs:label "IOTICS Digital Twin"@en ;
    rdfs:comment "A virtual representation of a real asset, device, concept or person in an IOTICSpace"@en ;
    .