-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from farshidtz/information-model
Describe the directory information model. Merging after updates and a review by @AndreaCimminoArriaga
- Loading branch information
Showing
5 changed files
with
317 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.