Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture frozen resources for publication #516

Merged
merged 13 commits into from
Oct 2, 2023
Empty file modified context/discovery-core.jsonld
100755 → 100644
Empty file.
8 changes: 8 additions & 0 deletions publication/6-resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Discovery Ontology and Context
Frozen resources for publication of WoT Discovery, version 1 (initial publication).
In general, published resources should not be modified; new versions should be published under unique URLs.

## Publication Mapping
* discovery-core.jsonld published as https://www.w3.org/2021/wot/discovery with Content-Type application/ld+json; charset=utf-8
* discovery-did.jsonld published as https://www.w3.org/2021/wot/discovery-did with Content-Type application/ld+json; charset=utf-8
* discovery-ontology.ttl published as https://www.w3.org/2021/wot/discovery-ontology with Content-Type text/turtle; charset=utf-8
60 changes: 60 additions & 0 deletions publication/6-resources/discovery-core.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"@context": {
"discovery": "https://www.w3.org/2021/wot/discovery-ontology#",
"ThingDirectory": {
"@id": "discovery:ThingDirectory",
"@type": "@id"
},
"ThingLink": {
"@id": "discovery:ThingLink",
"@type": "@id"
},
"ThingCollection": {
"@id": "discovery:ThingCollection",
"@type": "@id"
},
"next": {
"@id": "discovery:nextThingCollection",
"@type": "@id"
},
"total": {
"@id": "discovery:contains",
"@type": "xsd:integer"
},
"members": {
"@id": "discovery:hasCollectionMember",
"@type": "@id",
"@container": "@set"
},
"registration": {
"@id": "discovery:hasRegistrationInformation",
"@type": "@id",
"@context": {
"RegistrationInformation": {
"@id": "discovery:RegistrationInformation",
"@type": "@id"
},
"created": {
"@id": "discovery:dateCreated",
"@type": "xsd:dateTime"
},
"modified": {
"@id": "discovery:dateModified",
"@type": "xsd:dateTime"
},
"expires": {
"@id": "discovery:expires",
"@type": "xsd:dateTime"
},
"retrieved": {
"@id": "discovery:retrieved",
"@type": "xsd:dateTime"
},
"ttl": {
"@id": "discovery:ttl",
"@type": "xsd:unsignedInt"
}
}
}
}
}
13 changes: 13 additions & 0 deletions publication/6-resources/discovery-did.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"@context": {
"discovery": "https://www.w3.org/2021/wot/discovery-ontology#",
"WotDirectory": {
"@id": "discovery:WotDirectoryDIDService",
"@type": "@id"
},
"WotThing": {
"@id": "discovery:WotThingDIDService",
"@type": "@id"
}
}
}
128 changes: 128 additions & 0 deletions publication/6-resources/discovery-ontology.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix discovery: <https://www.w3.org/2021/wot/discovery-ontology#> .
@prefix td: <https://www.w3.org/2019/wot/td#> .
@prefix did: <https://www.w3.org/ns/did#> .
@prefix schema: <http://schema.org/> .
@base <https://www.w3.org/2021/wot/discovery-ontology#> .

<https://www.w3.org/2021/wot/discovery-ontology#> 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
#################################################################

### discovery:hasRegistrationInformation
discovery:hasRegistrationInformation rdf:type owl:ObjectProperty ;
rdfs:domain td:Thing ;
rdfs:range discovery:RegistrationInformation ;
rdfs:label "registration" .

### discovery:nextThingCollection
discovery:nextThingCollection rdf:type owl:ObjectProperty;
rdfs:domain discovery:ThingCollection;
rdfs:range discovery:ThingCollection;
rdfs:label "next ThingCollection" .


### discovery:hasCollectionMember
discovery:hasCollectionMember rdf:type owl:ObjectProperty;
rdfs:domain discovery:ThingCollection;
rdfs:range td:Thing;
rdfs:label "ThingCollection members" .
#################################################################

# Data Properties

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

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

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

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

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

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

### discovery:contains
discovery:contains rdf:type owl:DatatypeProperty ;
rdfs:domain discovery:ThingCollection;
rdfs:range xsd:integer;
rdfs:label "total number of things contained in the collection"@en .
#################################################################

# Classes

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

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

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

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

### discovery:ThingCollection
discovery:ThingCollection rdf:type owl:Class ;
rdfs:label "ThingCollection".

### discovery:WotThingDIDService
discovery:WotThingDIDService rdf:type owl:Class ;
rdfs:comment "Class used in DID documents that labels a URL for a service returning a WoT TD";
rdfs:subClassOf did:Service ;
rdfs:label "WotThingDIDService" .

### discovery:WotDirectoryDIDService
discovery:WotDirectoryDIDService rdf:type owl:Class ;
rdfs:comment "Class used in DID documents that labels a URL for a service returning a WoT TD that must describe a WoT TD Directory";
rdfs:subClassOf did:Service ;
rdfs:label "WotDirectoryDIDService" .


#################################################################
# Instances
#################################################################

#################################################################
# General Axioms
#################################################################