-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e8fdf8
commit eb47c09
Showing
15 changed files
with
49 additions
and
54 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
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 |
---|---|---|
@@ -1,14 +1,19 @@ | ||
from neomodel import RelationshipFrom, StringProperty, StructuredNode | ||
from src.GCF.decorators.OntologyClass import ontology_class | ||
|
||
from ..NodeProperties.P2_has_type import P2_has_type | ||
from src.Models.CRM.v5_0_2.NodeProperties.P15_was_influenced_by import P15_was_influenced_by | ||
from src.Models.CRM.v5_0_2.NodeProperties.P17_was_motivated_by import P17_was_motivated_by | ||
|
||
|
||
@ontology_class | ||
class E1_CRM_Entity(StructuredNode): | ||
|
||
hasType = RelationshipFrom( | ||
".E1_CRM_Entity.E1_CRM_Entity", "P2_has_type", model=P2_has_type | ||
) | ||
|
||
name = StringProperty(unique_index=True, required=True) | ||
is_composed_of = RelationshipFrom( | ||
".E7_Activity.E7_Activity", | ||
"P15_was_influenced_by", | ||
model=P15_was_influenced_by, | ||
) | ||
was_motivated_by = RelationshipFrom( | ||
".E7_Activity.E7_Activity", | ||
"P17_was_motivated_by", | ||
model=P17_was_motivated_by, | ||
) |
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
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
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
from neomodel import RelationshipTo | ||
from neomodel import RelationshipTo, RelationshipFrom | ||
from src.Models.CRM.v5_0_2.NodeEntities.E1_CRM_Entity import E1_CRM_Entity | ||
from src.Models.CRM.v5_0_2.NodeEntities.E18_Physical_Thing import \ | ||
E18_Physical_Thing | ||
from src.Models.CRM.v5_0_2.NodeEntities.E4_Period import E4_Period | ||
from src.Models.CRM.v5_0_2.NodeProperties.P7_took_place_at import \ | ||
P7_took_place_at | ||
from src.Models.CRM.v5_0_2.NodeProperties.P156_occupies import P156_occupies | ||
|
||
|
||
class E53_Place(E1_CRM_Entity): | ||
occupies = RelationshipTo(E18_Physical_Thing, "P156_occupies", model=P156_occupies) | ||
took_place_at = RelationshipTo( | ||
E18_Physical_Thing, "P7_took_place_at", model=P7_took_place_at | ||
took_place_at = RelationshipFrom( | ||
E4_Period, "P7_took_place_at", model=P7_took_place_at | ||
) |
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
from neomodel import RelationshipFrom | ||
|
||
from src.Models.CRM.v5_0_2.NodeEntities.E4_Period import E4_Period | ||
from src.Models.CRM.v5_0_2.NodeProperties.P20_had_specific_purpose import P20_had_specific_purpose | ||
|
||
|
||
class E5_Event(E4_Period): | ||
pass | ||
had_specific_purpose = RelationshipFrom( | ||
".E7_Activity.E7_Activity", | ||
"P20_had_specific_purpose", | ||
model=P20_had_specific_purpose, | ||
) |
File renamed without changes.
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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
from neomodel import RelationshipTo | ||
from neomodel import RelationshipTo, RelationshipFrom | ||
from src.Models.CRM.v5_0_2.NodeEntities.E70_Thing import E70_Thing | ||
from src.Models.CRM.v5_0_2.NodeProperties.P102_has_title import P102_has_title | ||
from src.Models.CRM.v5_0_2.NodeProperties.P19_was_intended_use_of import P19_was_intended_use_of | ||
|
||
|
||
class E71_Man_Made_Thing(E70_Thing): | ||
has_title = RelationshipTo( | ||
".E35_Title.E35_Title", "P46_has_title", model=P102_has_title, | ||
) | ||
was_intended_use_of = RelationshipFrom( | ||
".E7_Activity.E7_Activity", | ||
"P19_was_intended_use_of", | ||
model=P19_was_intended_use_of, | ||
) |
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