Tags and keywords
Wikipedia: 'A semantic triple, or RDF triple or simply triple, is the atomic data entity in the Resource Description Framework (RDF) data model. As its name indicates, a triple is a set of three entities that codifies a statement about semantic data in the form of subject–predicate–object expressions (e.g., "Bob is 35", or "Bob knows John").'
The Webel Parsing Analysis recipe introduces a pseudo semantic triple via the «pa:triple» stereotype keyword:
In this example, «pa:triple» is used directly on uni-directional Associations:
The following yields: Giant
- Eats
- Human
at the Classifier level and giant:Giant
- :Eats
- humanBeanFood:Human
at the Property level:
Wikipedia: 'The giant laughs and explains that most giants do eat human beings (which he pronounces as "human beans") ..'
The following implies: Giant
- Befriends
- Human
at the Classifier level and giant:Giant
- :Befriends
- humanBeanFriend:Human
at the Property level:
Wikipedia: 'The giant then says that he will not eat her as he is the Big Friendly Giant, or BFG for short.'
In line with Webel Best Practice the Association names start with a capital letter.
Presumably a Human
can also reciprocally befriend a Giant
. For the sake of demonstration, this is shown using «pa:triple» applied instead to a Dependency named Befriends
:
Notes
[DISPLAY, MODELLING, NAMING, POLICY, TIP]{STRICT} Webel Parsing Analysis: Pseudo Semantic Triple: For «pa:triple» applied to a named one-to-one or one-to-many uni-directional Association, the non-navigable end Property is the subject, the name is the predicate, the navigable end Property is the object.