Skip to content

Commit

Permalink
added more pages, including the provenance ones (activity, agent, ass…
Browse files Browse the repository at this point in the history
…ociation, and usage), also added the location ones that were missing cut and generic location, and tried to update sequence annotation and component definition to make it so that it only uses the correct location type but this needs more work
  • Loading branch information
danielfang97 committed Aug 18, 2023
1 parent 1638528 commit ed43639
Show file tree
Hide file tree
Showing 9 changed files with 514 additions and 164 deletions.
16 changes: 15 additions & 1 deletion frontend/components/Viewing/PageJSON/MasterJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ import SequenceConstraint from './Types/SequenceConstraint.json';
import Datasheet from './Types/Datasheet.json';
import Plan from './Types/Plan.json';
import VariableComponent from './Types/VariableComponent.json';
import SequenceAnnotation from './Types/SequenceAnnotation.json';
import Activity from './Types/Activity.json';
import Usage from './Types/Usage.json';
import Association from './Types/Association.json';
import Agent from './Types/Agent.json';
import GenericLocation from './Types/GenericLocation.json';
import Cut from './Types/Cut.json';


const TypeToJson = {
Expand All @@ -40,9 +47,16 @@ const TypeToJson = {
'http://sbols.org/v2#Interaction': Interaction,
'http://sbols.org/v2#Participation': Participation,
'http://sbols.org/v2#SequenceConstraint': SequenceConstraint,
'http://sbols.org/v2#VariableComponent': VariableComponent,
'http://sbols.org/v2#SequenceAnnotation': SequenceAnnotation,
'http://sbols.org/v2#GenericLocation': GenericLocation,
'http://sbols.org/v2#Cut': Cut,
'http://www.myapp.org/Datasheet': Datasheet,
'http://www.w3.org/ns/prov#Plan' : Plan,
'http://sbols.org/v2#VariableComponent': VariableComponent
'http://www.w3.org/ns/prov#Activity': Activity,
'http://www.w3.org/ns/prov#Usage': Usage,
'http://www.w3.org/ns/prov#Association': Association,
'http://www.w3.org/ns/prov#Agent': Agent
};

export default TypeToJson;
137 changes: 137 additions & 0 deletions frontend/components/Viewing/PageJSON/Types/Activity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"type": "http://www.w3.org/ns/prov#Activity",
"prefixes": [
"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>",
"PREFIX dcterms: <http://purl.org/dc/terms/>",
"PREFIX dc: <http://purl.org/dc/elements/1.1/>",
"PREFIX sbh: <http://wiki.synbiohub.org/wiki/Terms/synbiohub#>",
"PREFIX prov: <http://www.w3.org/ns/prov#>",
"PREFIX sbol: <http://sbols.org/v2#>",
"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>",
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>",
"PREFIX purl: <http://purl.obolibrary.org/obo/>"
],
"metadata": [],
"tables": [
{
"icon": "faVials",
"title": "Usages",
"rootPredicate": "prov:qualifiedUsage",
"sections": [
{
"title": "Usage",
"infoLink": "https://www.w3.org/ns/prov#Usage",
"predicates": [
"sbol:displayId"
],
"stripAfter": "#",
"link": "$<usageLink>"
},
{
"title": "usageLink",
"predicates": [],
"hide": true
},
{
"title": "Entity",
"infoLink": "https://www.w3.org/ns/prov#entity",
"predicates": [
"prov:entity"
],
"link": "$<entityLink>"
},
{
"title": "entityLink",
"predicates": [],
"hide": true
},
{
"title": "Roles",
"infoLink": "https://www.w3.org/ns/prov#hasRole",
"predicates": [
"prov:hadRole"
],
"stripAfter": "#",
"link": "$<roleLink>"
},
{
"title": "roleLink",
"predicates": [],
"hide": true
}
]
},
{
"icon": "faVials",
"title": "Associations",
"rootPredicate": "prov:qualifiedAssociation",
"sections": [
{
"title": "Association",
"infoLink": "https://www.w3.org/ns/prov#Association",
"predicates": [
"sbol:displayId"
],
"stripAfter": "#",
"link": "$<associationLink>"
},
{
"title": "associationLink",
"predicates": [],
"hide": true
},
{
"title": "Agent",
"infoLink": "https://www.w3.org/ns/prov#Agent",
"predicates": [
"prov:agent"
],
"link": "$<agentLink>"
},
{
"title": "agentLink",
"predicates": [],
"hide": true
},
{
"title": "Plan",
"infoLink": "https://www.w3.org/ns/prov#Plan",
"predicates": [
"prov:hadPlan"
],
"link": "$<planLink>"
},
{
"title": "planLink",
"predicates": [],
"hide": true
},
{
"title": "Roles",
"infoLink": "https://www.w3.org/ns/prov#hasRole",
"predicates": [
"prov:hadRole"
],
"link": "$<rolesLink>",
"stripAfter": "#"

},
{
"title": "rolesLink",
"predicates": [
"prov:hadRole"
],
"hide": true
}
]
}
],
"pages": [
"$TABLES[Usages]",
"$TABLES[Associations]",
"Details",
"Other Properties",
"Member of these Collections",
"Attachments"
]
}
23 changes: 23 additions & 0 deletions frontend/components/Viewing/PageJSON/Types/Agent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "http://www.w3.org/ns/prov#Agent",
"prefixes": [
"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>",
"PREFIX dcterms: <http://purl.org/dc/terms/>",
"PREFIX dc: <http://purl.org/dc/elements/1.1/>",
"PREFIX sbh: <http://wiki.synbiohub.org/wiki/Terms/synbiohub#>",
"PREFIX prov: <http://www.w3.org/ns/prov#>",
"PREFIX sbol: <http://sbols.org/v2#>",
"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>",
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>",
"PREFIX purl: <http://purl.obolibrary.org/obo/>"
],
"metadata": [],
"tables": [
],
"pages": [
"Details",
"Other Properties",
"Member of these Collections",
"Attachments"
]
}
57 changes: 57 additions & 0 deletions frontend/components/Viewing/PageJSON/Types/Association.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"type": "http://www.w3.org/ns/prov#Association",
"prefixes": [
"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>",
"PREFIX dcterms: <http://purl.org/dc/terms/>",
"PREFIX dc: <http://purl.org/dc/elements/1.1/>",
"PREFIX sbh: <http://wiki.synbiohub.org/wiki/Terms/synbiohub#>",
"PREFIX prov: <http://www.w3.org/ns/prov#>",
"PREFIX sbol: <http://sbols.org/v2#>",
"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>",
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>",
"PREFIX purl: <http://purl.obolibrary.org/obo/>"
],
"metadata": [
{
"title": "Roles",
"icon": "faVials",
"infoLink": "https://sbols.org/v2#role",
"rootPredicate": "prov:hadRole",
"sections": [
{
"title": "name",
"predicates": [

],
"stripAfter":"#",
"link": "$<roleLink>"
},
{
"title": "roleLink",
"predicates": [],
"hide": true
}
]
},
{
"title": "Agent",
"icon": "faVials",
"infoLink": "https://www.w3.org/ns/prov#agent",
"rootPredicate": "prov:agent",
"sections": [
{
"title": "name",
"predicates": [
],
"link": "$<This>"
}
]
}
],
"tables": [],
"pages": [
"Details",
"Other Properties",
"Attachments"
]
}
91 changes: 57 additions & 34 deletions frontend/components/Viewing/PageJSON/Types/ComponentDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
{
"title": "Extra Work",
"stripAfter": "#",
"predicates": [
],
"predicates": [],
"link": "$<typeLink>"
},
{
Expand Down Expand Up @@ -136,8 +135,7 @@
},
{
"title": "InstanceLink",
"predicates": [
],
"predicates": [],
"hide": true
}
]
Expand All @@ -162,33 +160,58 @@
},
{
"title": "Location",
"infoLink": "https://sbols.org/v2#Location",
"text": "$<Start>, $<End>",
"predicates": [],
"link": "$<LocationLink>"
},
{
"title": "Start",
"predicates": [
"sbol:location",
"sbol:start"
],
"hide": true
},
{
"title": "End",
"predicates": [
"sbol:location",
"sbol:end"
],
"hide": true
},
{
"title": "LocationLink",
"predicates": [
"sbol:location"
],
"hide": true
"infoLink": "https://sbols.org/v2#Location",
"icon": "faVials",
"sections": [
{
"title": "Cut",
"stripAfter": "#",
"predicates": [
"sbol:at"
],
"link": "$<locationCutLink>"
},
{
"title": "locationCutLink",
"predicates": [],
"hide": true
},
{
"title": "Range",
"infoLink": "https://sbols.org/v2#Location",
"text": "$<Start>, $<End>",
"predicates": [],
"link": "$<LocationRangeLink>"
},
{
"title": "Start",
"predicates": [
"sbol:start"
],
"hide": true
},
{
"title": "End",
"predicates": [
"sbol:end"
],
"hide": true
},
{
"title": "LocationRangeLink",
"predicates": [
],
"hide": true
},
{
"title": "GenericLocation",
"stripAfter": "#",
"predicates": [],
"text": "generic"
}
]
},
{
"title": "Component",
Expand Down Expand Up @@ -239,15 +262,14 @@
{
"title": "SequenceLink",
"hide": true,
"predicates": [

]
"predicates": []
},
{
"title": "Subject",
"infoLink": "https://sbols.org/v2#subject",
"predicates": [
"sbol:subject","sbol:displayId"
"sbol:subject",
"sbol:displayId"
],
"link": "$<SubjectLink>"
},
Expand Down Expand Up @@ -278,7 +300,8 @@
"title": "Object",
"infoLink": "https://sbols.org/v2#object",
"predicates": [
"sbol:object","sbol:displayId"
"sbol:object",
"sbol:displayId"
],
"link": "$<ObjectLink>"
},
Expand Down
Loading

0 comments on commit ed43639

Please sign in to comment.