Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
invisig0th committed Jan 17, 2025
1 parent c72dfe1 commit 77ed8ea
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
7 changes: 7 additions & 0 deletions synapse/models/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def getModelDefs(self):
('phys:object', ('ndef', {'interface': 'phys:object'}), {
'doc': 'A node which represents a physical object.'}),

('phys:contained:type:taxonomy', ('taxonomy', {}), {
'interfaces': ('meta:taxonomy',),
'doc': 'A taxonomy for types of contained relationships.'}),

('phys:contained', ('guid', {}), {
'doc': 'A node which represents a physical object containing another physical object.'}),

Expand All @@ -86,6 +90,9 @@ def getModelDefs(self):

('phys:contained', {}, (

('type', ('phys:contained:type:taxonomy', {}), {
'doc': 'The type of container relationship.'}),

('period', ('ival', {}), {
'doc': 'The period where the container held the object.'}),

Expand Down
30 changes: 13 additions & 17 deletions synapse/models/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,25 @@ def getModelDefs(self):
}),
('ps:name', ('str', {'lower': True, 'onespace': True}), {
'doc': 'An arbitrary, lower spaced string with normalized whitespace.',
'ex': 'robert grey'
}),
'ex': 'robert grey'}),

('ps:person', ('guid', {}), {
'interfaces': ('phys:object',),
'template': {'phys:object': 'person'},
'doc': 'A GUID for a person.',
}),
'doc': 'A GUID for a person.'}),

('ps:persona', ('guid', {}), {
'deprecated': True,
'doc': 'A GUID for a suspected person.',
}),
'doc': 'Deprecated. Please use ps:contact.'}),

('ps:person:has', ('comp', {'fields': (('person', 'ps:person'), ('node', 'ndef'))}), {
'deprecated': True,
'doc': 'A person owns, controls, or has exclusive use of an object or'
' resource, potentially during a specific period of time.'
}),
'doc': 'Deprecated. Please use ps:person -(has)>.'}),

('ps:persona:has', ('comp', {'fields': (('persona', 'ps:persona'), ('node', 'ndef'))}), {
'deprecated': True,
'doc': 'A persona owns, controls, or has exclusive use of an object or'
' resource, potentially during a specific period of time.'}),
'doc': 'Deprecated. Please use ps:contact -(has)>.'}),

('ps:contact', ('guid', {}), {
'doc': 'A GUID for a contact info record.',
'interfaces': ('phys:object',),
'template': {'phys:object': 'contact'},
'display': {
'columns': (
{'type': 'prop', 'opts': {'name': 'name'}},
Expand All @@ -64,9 +58,11 @@ def getModelDefs(self):
'doc': 'A GUID for a list of associated contacts.',
}),
('ps:workhist', ('guid', {}), {
'doc': "A GUID representing entry in a contact's work history.",
}),
'doc': "A GUID representing entry in a contact's work history."}),

('ps:vitals', ('guid', {}), {
'interfaces': ('phys:object',),
'template': {'phys:object', 'person'},
'doc': 'Statistics and demographic data about a person or contact.'}),

('ps:skill', ('guid', {}), {
Expand Down
4 changes: 2 additions & 2 deletions synapse/models/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def getModelDefs(self):
'place': 'station',
'segment': 'train route',
'vehicle': 'train'},
'doc': 'An individual instance of a train running a route.'}),
'doc': 'An individual instance of a consist of train cars running a route.'}),

('transport:rail:car', ('guid', {}), {
'interfaces': ('transport:container',),
Expand Down Expand Up @@ -231,7 +231,7 @@ def getModelDefs(self):

('transport:segment', {
# train, flight, drive, launch...
'doc': 'Properties common to a specific segment of a journey made by a vehicle.',
'doc': 'Properties common to a specific instance of a route taken by a vehicle.',
'interfaces': ('transport:schedule',),

'props': (
Expand Down

0 comments on commit 77ed8ea

Please sign in to comment.