Skip to content

Commit

Permalink
修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
na57 committed May 28, 2024
1 parent 710fbf6 commit 434a671
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "triples-api",
"version": "1.10.0",
"version": "1.10.1",
"description": "对triples进行操作的Restful API",
"main": "index.js",
"type": "module",
Expand All @@ -15,7 +15,7 @@
"express-jwt": "^8.4.1",
"nagu-owl": "^1.11.5",
"nagu-owl-types": "^1.4.1",
"nagu-triples": "^2.0.6",
"nagu-triples": "^2.0.7",
"nagu-triples-types": "^1.0.2"
}
}
7 changes: 7 additions & 0 deletions src/rdf/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ const setPropertyValue = async (req, res) => {
}
}

// const batchRetriveAnnotations = async (req, res) => {
// const iris = req.body.iris as Array<string>;
// const iri
// }


router.get('/:iri', getOrCreateResource, getAnnotations);
router.put('/:iri', getOrCreateResource, setAnnotations);
Expand All @@ -76,4 +81,6 @@ router.get('/:iri/property/:piri/value', getOrCreateResource, getPropertyValues)
*/
router.post('/:iri/property/:piri', getOrCreateResource, setPropertyValue);

// router.post('/batch-retrive-annotations', )

export default router;

0 comments on commit 434a671

Please sign in to comment.