From 434a671d8d573f56b5eda7e9f96c56a42c1b6a55 Mon Sep 17 00:00:00 2001 From: na57 Date: Tue, 28 May 2024 15:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 8 ++++---- package.json | 4 ++-- src/rdf/resource.ts | 7 +++++++ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index a970af9..65fed5f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,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" } }, @@ -1124,9 +1124,9 @@ } }, "node_modules/nagu-triples": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/nagu-triples/-/nagu-triples-2.0.6.tgz", - "integrity": "sha512-z5Wofix0yTzY58mhJQObLTWywEPXH0Q4lL9aU7cUbPQFGvNFKxvMYkkR+ZWTpPMXYv5vv6ztxKBzS9pDKGTbXg==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/nagu-triples/-/nagu-triples-2.0.7.tgz", + "integrity": "sha512-LdS2tWC6FRtKmy3DP9nRhHfi9ov4EE9dORD5y+Wt7e4wDb6UEG838MJgHDYrlNVmCP7+rftcHk0M9y9QaqoAgA==", "dependencies": { "chalk": "^5.3.0", "commander": "^12.0.0", diff --git a/package.json b/package.json index 40d69be..436a2bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "triples-api", - "version": "1.10.0", + "version": "1.10.1", "description": "对triples进行操作的Restful API", "main": "index.js", "type": "module", @@ -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" } } diff --git a/src/rdf/resource.ts b/src/rdf/resource.ts index 4443597..8555d51 100644 --- a/src/rdf/resource.ts +++ b/src/rdf/resource.ts @@ -66,6 +66,11 @@ const setPropertyValue = async (req, res) => { } } +// const batchRetriveAnnotations = async (req, res) => { +// const iris = req.body.iris as Array; +// const iri +// } + router.get('/:iri', getOrCreateResource, getAnnotations); router.put('/:iri', getOrCreateResource, setAnnotations); @@ -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; \ No newline at end of file