Skip to content

Commit

Permalink
Updated directory to new ontology model (#175)
Browse files Browse the repository at this point in the history
* Updated discovery ontology

Modifications:
 * Add terms ttl and retrieve
 * Modified classes names
 * Added class ThingEnriched

* Updated diagram

* Update discovery-context.jsonld

* Update discovery-context.jsonld

* Update discovery-context.jsonld

* Update discovery-context.jsonld

* Update discovery-context.jsonld

* Update directory-td-class-diagram.puml

* Update directory-td-class-diagram.puml

* Add files via upload

* Update discovery-context.jsonld

* Update discovery-ontology.ttl

* Revert "Add files via upload"

This reverts commit 2ad609e.

* Revert "Update directory-td-class-diagram.puml"

This reverts commit e3b1245.

* Revert "Update directory-td-class-diagram.puml"

This reverts commit 24995a7.

* Update discovery-context.jsonld

* Update discovery-context.jsonld

* Update discovery-context.jsonld

* Update discovery-context.jsonld

* Update discovery-context.jsonld

* Update discovery-ontology.ttl

* Update discovery-ontology-chowlk.xml
  • Loading branch information
AndreaCimminoArriaga authored May 31, 2021
1 parent e10e883 commit 24b2141
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 35 deletions.
49 changes: 37 additions & 12 deletions context/discovery-context.jsonld
Original file line number Diff line number Diff line change
@@ -1,19 +1,44 @@
{
"@context": {
"discovery": "https://www.w3.org/2021/wot/discovery#",
"schema": "http://schema.org/",
"DirectoryDescription": {
"@id": "discovery:DirectoryDescription"
"ThingDirectory": {
"@id": "discovery:ThingDirectory",
"@type": "@id"
},
"LinkDescription": {
"@id": "discovery:LinkDescription"
"ThingLink": {
"@id": "discovery:ThingLink",
"@type": "@id"
},
"RegistrationInformation": {
"@id": "discovery:RegistrationInformation"
},
"registration": "discovery:hasRegistrationInformation",
"created": "schema:dateCreated",
"modified": "schema:dateModified",
"expires": "schema:expires"
"registration": {
"@id": "discovery:hasRegistrationInformation",
"@type": "@id",
"@context": {
"schema": "http://schema.org/",
"RegistrationInformation": {
"@id": "discovery:RegistrationInformation",
"@type": "@id"
},
"created": {
"@id": "schema:dateCreated",
"@type": "xsd:dateTime"
},
"modified": {
"@id": "schema:dateModified",
"@type": "xsd:dateTime"
},
"expires": {
"@id": "schema:expires",
"@type": "xsd:dateTime"
},
"retrieved": {
"@id": "discovery:retrieved",
"@type": "xsd:dateTime"
},
"ttl": {
"@id": "discovery:ttl",
"@type": "xsd:unsignedInt"
}
}
}
}
}
2 changes: 1 addition & 1 deletion context/discovery-ontology-chowlk.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="app.diagrams.net" modified="2021-04-26T09:36:02.763Z" agent="5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36" version="14.6.6" etag="XIRbDmwrvtHAUBXOKZq0"><diagram id="LhQrBxsUQyT8V3tOavLX">7Vrfb6M4EP5rIt09NMIQSHhM0/bupF3t6bbS7j464IAVwJxxmrR//Y3B/LAhaa5NdvtAFCXMYI899nyfx4aJs0oPf3Ccx59ZSJKJbYWHiXM3sW00sz34k5rnSuPZVqWIOA1VoVbxlb4QpayL7WhICq2gYCwRNNeVAcsyEghNhzlne73YhiV6qzmOSE/xNcBJX/uNhiKutAt73ur/JDSK65aR51d3UlwXVp4UMQ7ZvqNy7ifOijMmqqv0sCKJHLx6XKp6D0fuNh3jJBPnVLCrCk842SnfJraXQNXbkD7BZVRdFgF7Ihxmawk6nOagzNaF/IuFkIO+lE3YDxEV8W49DVgKwt4J5C8TN60B26ntr3ltXoSv2t3v99O9M2U8AsG2kF8Zhl+oPGSz1kCJjiMDvhVBTFJcNmTJNpsmqxuqyWPmyikUz3VcwGzm8jJjAv5u9zEV5GuOA6nbAxRKv9IEJCR7i4NtxNkuC7/sREIzovQh5tsvUIsKCQ9rarlNWzCGghyOzjVqIgigR1hKhBxyq65Qw0ehbjZX8r6NYdtXurgbv5ZSYoWbqLHdhhZcqOgajjSnF2nlvD/GNIt6A1mOCpE1rdfHschw/sj+ZrQcBqnJ5XXZV/cWvtYUBmZlTVwwvSpl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iyVHas0k9g7cFsuSxXqBR1Cnma9pldBpvI1rHpDGBzMPv0L4HN/kPYZr0ihxx23cW4VI1L1a9cqvzrLVUgtu+UVRug9s085/4/</diagram></mxfile>
<mxfile host="app.diagrams.net" modified="2021-05-26T09:18:20.312Z" agent="5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36" version="14.6.13" etag="eoKGkfDRJcbQuprgsAb7" type="device"><diagram id="gx8tcw-dY9T01vp58GJx">7VrbcqM4EP0aP8aFuDl+dJxkd6tmarZ2UjU7jzLIoDIgl5Avma/fFkhcBLZJxnH2AZfLphuppZbOkRo1E2eZHv/geBt/ZSFJJrYVHifO48S2kWv78Cc1r6XG14qI01AVqhXf6S+ilJbS7mhI8lZBwVgi6LatDFiWkUC0dJhzdmgXW7Ok3eoWR6Sj+B7gpKv9QUMRl9p7e1br/yQ0inXLyJ+Xd1KsCytP8hiH7NBQOU8TZ8kZE+VVelySRA6eHpey3vOJu1XHOMnEkAp2WWGPk53ybWL7CVR9COkeLqPyMg/YnnCYrQXocLoFZbbK5V8shBz0hWzCfo6oiHeracBSEA5OIH+ZuKsN2I62v+LavAgv2j0cDtODM2U8AsG20Lw0DL9Quc+m1kCJhiM9vuVBTFJcNGTJNqsmyxuqyVPmiikUrxoXMJtbeZkxAX8Ph5gK8n2LA6k7ABUKv9IEJCR7i4NNxNkuC7/tREIzovQh5ptvUIsKSQ9ranlVWzCGghxPzjWqEATUIywlQg65pSto+ijWuTMlH2oM23Oli5v4tZQSK95Ele0aWnCh0NWPNKeDtGLeX2KaRZ2BLEaFyJrW5XHMM7x9YX8zWgyD1GzlddFX7wG+1hQGZmlNPDC9LGTbkB1Ddg3ZM2TfkGeGfG/I87YsJehTW3YM2TPkmSHPG/alf8jwDxn+IcM/ZPiHDP+Q4R8y/EOGf7WMDP+Q4R8y/EOGf6j2D75Xwb7n2i3sO34X+wiI1sG+cwXoux3oN1fUfwismhwL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ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix discovery: <https://github.com/w3c/wot-discovery#> .
@prefix td: <https://www.w3.org/2019/wot/td#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix schema: <http://schema.org/> .
@base <https://github.com/w3c/wot-discovery#> .
<https://github.com/w3c/wot-discovery#> rdf:type owl:Ontology ;

dc:creator "Andrea Cimmino" ;
dc:creator "Farshid Tavakolizadeh" ;
dc:description "Ontology code generated with Chowlk" ;
owl:versionInfo "0.1.1" ;
dc:title "WoT discovery ontology" .
<https://github.com/w3c/wot-discovery#> rdf:type owl:Ontology ;
dc:creator "Andrea Cimmino" ;
dc:creator "Farshid Tavakolizadeh" ;
owl:versionInfo "0.1.2" ;
dc:title "WoT discovery ontology" ;
dc:description "Ontology code created by Chowlk" .

#################################################################
# Object Properties
Expand All @@ -26,45 +25,67 @@ dc:title "WoT discovery ontology" .
### discovery:hasRegistrationInformation
discovery:hasRegistrationInformation rdf:type owl:ObjectProperty ;
rdfs:domain td:Thing ;
rdfs:range discovery:RegistrationInformation ;
rdfs:label "has registration information" .
rdfs:range discovery:RegitrationInformation ;
rdfs:label "registration" .

#################################################################

# Data Properties

#################################################################

### schema:dateCreated
schema:dateCreated rdf:type owl:DatatypeProperty ;
rdfs:label "date created" .
rdfs:domain discovery:RegitrationInformation ;
rdfs:range xsd:dateTime ;
rdfs:label "created"@en .

### schema:dateModified
schema:dateModified rdf:type owl:DatatypeProperty ;
rdfs:label "date modified" .
rdfs:domain discovery:RegitrationInformation ;
rdfs:range xsd:dateTime ;
rdfs:label "modified"@en .

### schema:expires
schema:expires rdf:type owl:DatatypeProperty ;
rdfs:label "expires" .
rdfs:domain discovery:RegitrationInformation ;
rdfs:range xsd:dateTime ;
rdfs:label "expires"@en .

### discovery:ttl
discovery:ttl rdf:type owl:DatatypeProperty ;
rdfs:domain discovery:RegitrationInformation ;
rdfs:range xsd:unsignedInt ;
rdfs:label "ttl"@en .

### discovery:retrieve
discovery:retrieved rdf:type owl:DatatypeProperty ;
rdfs:domain discovery:RegitrationInformation ;
rdfs:range xsd:dateTime ;
rdfs:label "retrieved"@en .

#################################################################

# Classes

#################################################################

### td:Thing
td:Thing rdf:type owl:Class ;
rdfs:label "Thing" .

### discovery:RegistrationInformation
discovery:RegistrationInformation rdf:type owl:Class ;
rdfs:label "Registration Information" .
### discovery:RegitrationInformation
discovery:RegitrationInformation rdf:type owl:Class ;
rdfs:label "RegitrationInformation" .

### discovery:LinkDescription
discovery:LinkDescription rdf:type owl:Class ;
rdfs:label "Link Description" ;
### discovery:ThingLink
discovery:ThingLink rdf:type owl:Class ;
rdfs:label "ThingLink" ;
rdfs:subClassOf td:Thing .

### discovery:DirectoryDescription
discovery:DirectoryDescription rdf:type owl:Class ;
rdfs:label "Directory Description" ;
### discovery:ThingDirectory
discovery:ThingDirectory rdf:type owl:Class ;
rdfs:label "ThingDirectory" ;
rdfs:subClassOf td:Thing .

#################################################################
Expand All @@ -74,4 +95,3 @@ discovery:DirectoryDescription rdf:type owl:Class ;
#################################################################
# General Axioms
#################################################################

0 comments on commit 24b2141

Please sign in to comment.