Skip to content

Commit

Permalink
Merge pull request #112 from farshidtz/information-model
Browse files Browse the repository at this point in the history
Describe the directory information model.  Merging after updates and a review by @AndreaCimminoArriaga
  • Loading branch information
mmccool authored Feb 1, 2021
2 parents 0db5641 + 5c2480d commit b122b36
Show file tree
Hide file tree
Showing 5 changed files with 317 additions and 19 deletions.
12 changes: 12 additions & 0 deletions context/discovery-context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"@context": {
"discovery": "https://www.w3.org/2021/wot/discovery#",
"tdd": "https://www.w3.org/2021/wot/discovery#",
"DirectoryDescription": {
"@id": "discovery:DirectoryDescription"
},
"LinkDescription": {
"@id": "discovery:LinkDescription"
}
}
}
7 changes: 5 additions & 2 deletions directory.td.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"@context": "https://www.w3.org/2019/wot/td/v1",
"@type": "Directory",
"@context": [
"https://www.w3.org/2019/wot/td/v1",
"https://w3c.github.io/wot-discovery/context/discovery-context.jsonld"
],
"@type": "DirectoryDescription",
"title": "Thing Description Directory (TDD)",
"version": {
"instance": "1.0.0-alpha"
Expand Down
46 changes: 46 additions & 0 deletions images/exploration-class-diagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
@startuml exploration-class-diagram
class TD as "td:Thing"
class DD as "discovery:DirectoryDescription"
class LD as "discovery:LinkDescription"
class RI as "tdd:RegistrationInfo"

/' relations '/
Thing "1" --> "0..1 " TD: exposes
Directory "1 " --> "0..*" TD: contains
TD *-right- RI
TD <|-- DD
TD <|-- LD

/' classes and notes '/
class Thing << service >>
class Directory << service >>
class TD {
tdd:registration
...
}
note left: Thing Description (TD)
class RI {
tdd:created {readOnly}
' tdd:expires
tdd:id {readOnly}
tdd:modified {readOnly}
' tdd:ttl
}
together {
class DD {
...
}
note bottom: TD that describes\na Directory

class LD {
...
}
note bottom: TD that describes\na reference to another TD
}

/' configurations '/
hide Directory members
hide Thing members
' hide members
hide methods
@enduml
108 changes: 108 additions & 0 deletions images/exploration-class-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b122b36

Please sign in to comment.