-
Notifications
You must be signed in to change notification settings - Fork 8
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 #132 from yetanalytics/fix-activity-definition-bug
Fix activity generation bugs
- Loading branch information
Showing
10 changed files
with
288 additions
and
28 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
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,202 @@ | ||
{ | ||
"id": "https://xapinet.org/xapi/yet/activity-profile", | ||
"type": "Profile", | ||
"@context": "https://w3id.org/xapi/profiles/context", | ||
"conformsTo": "https://w3id.org/xapi/profiles#1.0", | ||
"prefLabel": { | ||
"en": "Activity Test Profile" | ||
}, | ||
"definition": { | ||
"en": "This Profile is intended to test Activity and Activity Types" | ||
}, | ||
"versions": [ | ||
{ | ||
"id": "https://xapinet.org/xapi/yet/activity-profile/v1", | ||
"generatedAtTime": "2024-01-25T10:10:10Z" | ||
} | ||
], | ||
"author": { | ||
"url": "https://www.yetanalytics.com/", | ||
"name": "Yet Analytics", | ||
"type": "Organization" | ||
}, | ||
"concepts": [ | ||
{ | ||
"id": "https://xapinet.org/xapi/yet/activity/nontyped", | ||
"type": "Activity", | ||
"inScheme": "https://xapinet.org/xapi/yet/activity-profile/v1", | ||
"activityDefinition": { | ||
"@context": "https://w3id.org/xapi/profiles/activity-context", | ||
"name": { | ||
"en": "Activity without Activity Type" | ||
}, | ||
"description": { | ||
"en": "Activity without Activity Type" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "https://xapinet.org/xapi/yet/activity/typed", | ||
"type": "Activity", | ||
"inScheme": "https://xapinet.org/xapi/yet/activity-profile/v1", | ||
"activityDefinition": { | ||
"@context": "https://w3id.org/xapi/profiles/activity-context", | ||
"name": { | ||
"en": "Activity with Activity Type" | ||
}, | ||
"description": { | ||
"en": "Activity with Activity Type" | ||
}, | ||
"type": "https://xapinet.org/xapi/yet/activity-type" | ||
} | ||
}, | ||
{ | ||
"id": "https://xapinet.org/xapi/yet/activity-type", | ||
"type": "ActivityType", | ||
"inScheme": "https://xapinet.org/xapi/yet/activity-profile/v1", | ||
"prefLabel": { | ||
"en": "Activity Type Label" | ||
}, | ||
"definition": { | ||
"en": "Activity Type Definition" | ||
} | ||
} | ||
], | ||
"templates": [ | ||
{ | ||
"id": "https://xapinet.org/xapi/yet/template/1", | ||
"type": "StatementTemplate", | ||
"inScheme": "https://xapinet.org/xapi/yet/activity-profile/v1", | ||
"prefLabel": { | ||
"en": "Template 1" | ||
}, | ||
"definition": { | ||
"en": "Template to test Activity Type determining properties" | ||
}, | ||
"objectActivityType": "https://xapinet.org/xapi/yet/activity-type", | ||
"contextGroupingActivityType": ["https://xapinet.org/xapi/yet/activity-type"], | ||
"contextParentActivityType": ["https://xapinet.org/xapi/yet/activity-type"], | ||
"contextOtherActivityType": ["https://xapinet.org/xapi/yet/activity-type"], | ||
"contextCategoryActivityType": ["https://xapinet.org/xapi/yet/activity-type"] | ||
}, | ||
{ | ||
"id": "https://xapinet.org/xapi/yet/template/2", | ||
"type": "StatementTemplate", | ||
"inScheme": "https://xapinet.org/xapi/yet/activity-profile/v1", | ||
"prefLabel": { | ||
"en": "Template 2" | ||
}, | ||
"definition": { | ||
"en": "Template to test activity type referenced in activity definition" | ||
}, | ||
"rules": [ | ||
{ | ||
"location": "$.object.definition", | ||
"presence": "included", | ||
"all": [{"type": "https://xapinet.org/xapi/yet/activity-type"}] | ||
}, | ||
{ | ||
"location": "$.context.contextActivities.grouping[0].definition", | ||
"presence": "included", | ||
"all": [{"type": "https://xapinet.org/xapi/yet/activity-type"}] | ||
}, | ||
{ | ||
"location": "$.context.contextActivities.parent[0].definition", | ||
"presence": "included", | ||
"all": [{"type": "https://xapinet.org/xapi/yet/activity-type"}] | ||
}, | ||
{ | ||
"location": "$.context.contextActivities.other[0].definition", | ||
"presence": "included", | ||
"all": [{"type": "https://xapinet.org/xapi/yet/activity-type"}] | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "https://xapinet.org/xapi/yet/template/3", | ||
"type": "StatementTemplate", | ||
"inScheme": "https://xapinet.org/xapi/yet/activity-profile/v1", | ||
"prefLabel": { | ||
"en": "Template 3" | ||
}, | ||
"definition": { | ||
"en": "Template to test activity type referenced by ID" | ||
}, | ||
"rules": [ | ||
{ | ||
"location": "$.object.definition.type", | ||
"presence": "included", | ||
"all": ["https://xapinet.org/xapi/yet/activity-type"] | ||
}, | ||
{ | ||
"location": "$.context.contextActivities.grouping[0].definition.type", | ||
"presence": "included", | ||
"all": ["https://xapinet.org/xapi/yet/activity-type"] | ||
}, | ||
{ | ||
"location": "$.context.contextActivities.parent[0].definition.type", | ||
"presence": "included", | ||
"all": ["https://xapinet.org/xapi/yet/activity-type"] | ||
}, | ||
{ | ||
"location": "$.context.contextActivities.other[0].definition.type", | ||
"presence": "included", | ||
"all": ["https://xapinet.org/xapi/yet/activity-type"] | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "https://xapinet.org/xapi/yet/template/4", | ||
"type": "StatementTemplate", | ||
"inScheme": "https://xapinet.org/xapi/yet/activity-profile/v1", | ||
"prefLabel": { | ||
"en": "Template 4" | ||
}, | ||
"definition": { | ||
"en": "Template to test activity referenced by ID" | ||
}, | ||
"rules": [ | ||
{ | ||
"location": "$.object.id", | ||
"presence": "included", | ||
"all": ["https://xapinet.org/xapi/yet/activity/nontyped"] | ||
}, | ||
{ | ||
"location": "$.context.contextActivities.grouping[0].id", | ||
"presence": "included", | ||
"all": ["https://xapinet.org/xapi/yet/activity/nontyped"] | ||
}, | ||
{ | ||
"location": "$.context.contextActivities.parent[0].id", | ||
"presence": "included", | ||
"all": ["https://xapinet.org/xapi/yet/activity/nontyped"] | ||
}, | ||
{ | ||
"location": "$.context.contextActivities.other[0].id", | ||
"presence": "included", | ||
"all": ["https://xapinet.org/xapi/yet/activity/nontyped"] | ||
} | ||
] | ||
} | ||
], | ||
"patterns": [ | ||
{ | ||
"id": "https://xapi.org/xapi/yet/pattern", | ||
"type": "Pattern", | ||
"inScheme": "https://xapinet.org/xapi/yet/activity-profile/v1", | ||
"primary": true, | ||
"prefLabel": { | ||
"en": "Primary Pattern" | ||
}, | ||
"definition": { | ||
"en": "Sequence pattern for templates 1 to 4" | ||
}, | ||
"sequence": [ | ||
"https://xapinet.org/xapi/yet/template/1", | ||
"https://xapinet.org/xapi/yet/template/2", | ||
"https://xapinet.org/xapi/yet/template/3", | ||
"https://xapinet.org/xapi/yet/template/4" | ||
] | ||
} | ||
] | ||
} |
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
Oops, something went wrong.