Skip to content

Commit

Permalink
add manual, update templates for wd: Qnode
Browse files Browse the repository at this point in the history
  • Loading branch information
iris-liu0312 committed Feb 5, 2022
1 parent b3f737a commit 779c4cc
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 25 deletions.
18 changes: 10 additions & 8 deletions static/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import {

import Home from "./template/Home";
import Viewer from "./template/Viewer";
import Compare from "./template/Compare";
import logo from './public/logo.png'
import GitHubIcon from '@material-ui/icons/GitHub';
import HelpIcon from '@material-ui/icons/Help';

import './App.scss'

Expand All @@ -34,22 +35,23 @@ export default function App() {
<Col md="3" className="nav-items">
<Link to="/viewer">Viewer</Link>
</Col>
{/* <Col md="3" className="nav-items">
<Link to="/compare">Compare</Link>
</Col> */}
<Col md="3" className="nav-items">
<a target="_blank" href="https://github.com/cu-clear/schema-interface">
Github
</a>
<img src={GitHubIcon} alt="GitHub" />
</a>
</Col>
<Col md="3" className="nav-items">
<a target="_blank" href="https://chrysographes.notion.site/Schema-Curation-Manual-c17f79c7450246d3ad7796e43bebea1b">
<img src={HelpIcon} alt="Manual" />
</a>
</Col>
</Row>
</Col>
</Row>

<Routes>
<Route exact path="/viewer" element={<Viewer />} />
{/* <Route exact path="/compare" element={<Compare />} /> */}
<Route exact path="/" element={<Home />}/>
<Route exact path="/viewer" element={<Viewer />} />
</Routes>
</div>
</Router>
Expand Down
53 changes: 36 additions & 17 deletions static/src/template/JsonEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,33 @@ export default class JSONEdit extends Component {
templates: [
{
text: 'Event',
title: 'Insert an Event Node',
title: 'Insert Event',
field: '',
value: {
'@id': 'Events/10000/Event',
'name': 'Event Name',
'comment': 'description',
'qnode': 'Q1234567',
'qlabel': 'qnode',
'description': '',
'qnode': 'wd:Q1234567',
'qlabel': 'qnode name',
'participants': [],
'minDuration': '',
'maxDuration': '',
'description': 'description',
'goal': '',
'ta1explanation': '',
'children': [],
'privateData': {
'@type': '',
'template': '',
'repeatable': false
}
}
},
{
text: 'Container',
title: 'Insert Container',
field: '',
value: {
'@id': 'Events/10000/Event:Container',
'name': 'Event outlinks',
'comment': 'container node',
'children_gate': 'or',
'children': [],
'privateData': {
'@type': '',
'template': '',
Expand All @@ -58,12 +69,21 @@ export default class JSONEdit extends Component {
'entity': 'Entities/00001/'
}
},
{
text: 'Children',
title: 'Insert Children',
field: '',
value: {
'children_gate': 'or',
'children': [],
}
},
{
text: 'Child',
title: 'Insert Child',
field: '',
value: {
'child': 'Events/10023/Steps_kairos',
'child': 'Events/10000/Event',
'comment': 'name',
'optional': false,
'importance': 1,
Expand All @@ -75,21 +95,20 @@ export default class JSONEdit extends Component {
title: 'Insert Entity',
field: '',
value: {
'@id': 'Entities/00023/',
'@id': 'Entities/00000/',
'name': 'name',
'qnode': 'Q1234567',
'qlabel': 'qlabel',
'centrality': 1
'qnode': 'wd:Q1234567',
'qlabel': 'qlabel'
}
},
{
text: 'Relation',
title: 'Insert Relation',
field: '',
value: {
'relationSubject': 'Entities/00023/',
'relationPredicate': 'Q1234567',
'relationObject': 'Entities/00023/',
'relationSubject': 'Entities/00000/',
'relationPredicate': 'wd:Q1234567',
'relationObject': 'Entities/00000/',
'@id': 'Relations/30000/'
}
}
Expand Down

0 comments on commit 779c4cc

Please sign in to comment.