diff --git a/package.json b/package.json index 4e6bbc5..f1c1f0c 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@koa/bodyparser": "^5.1.1", "@koa/cors": "^5.0.0", "@koa/router": "^13.1.0", - "@ldhop/core": "^0.0.1-alpha.15", + "@ldhop/core": "^0.1.0", "@soid/koa": "^0.1.2", "@solid/access-token-verifier": "^2.0.5", "@types/koa": "^2.15.0", diff --git a/src/tasks/refreshIndex.ts b/src/tasks/refreshIndex.ts index b6deda6..64d1308 100644 --- a/src/tasks/refreshIndex.ts +++ b/src/tasks/refreshIndex.ts @@ -1,7 +1,7 @@ import { QueryAndStore, RdfQuery, run } from '@ldhop/core' import { getAuthenticatedFetch } from '@soid/koa' import { Parser, Store } from 'n3' -import { dct, sioc, solid, vcard } from 'rdf-namespaces' +import { rdf, sioc, solid, vcard } from 'rdf-namespaces' import { hospex } from '../namespaces.js' import { HttpError } from '../utils/errors.js' import { fetchThing, saveThing, validateThing } from '../utils/thing.js' @@ -16,9 +16,10 @@ const query: RdfQuery = [ }, { type: 'match', - subject: '?publicTypeIndex', - predicate: dct.references, - pick: 'object', + predicate: rdf.type, + object: solid.TypeRegistration, + graph: '?publicTypeIndex', + pick: 'subject', target: '?typeRegistration', }, { diff --git a/yarn.lock b/yarn.lock index 1f182d3..e2be69f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2299,10 +2299,10 @@ koa-compose "^4.1.0" path-to-regexp "^6.3.0" -"@ldhop/core@^0.0.1-alpha.15": - version "0.0.1-alpha.16" - resolved "https://registry.npmjs.org/@ldhop/core/-/core-0.0.1-alpha.16.tgz#18957917157213cac85ef4d0a681c8539a9162d1" - integrity sha512-V3YvT3USbVfrbxf9/FSqUXH2Xu1vo1qFtRW8Kc4mWUkBYJ5/F6lwGf2BKSYpEJEH68f6tB3ZWnysvRhrh9w/Tg== +"@ldhop/core@^0.1.0": + version "0.1.0" + resolved "https://registry.npmjs.org/@ldhop/core/-/core-0.1.0.tgz#b67f1f3503cc4cf02d69c442e47c54db6376d32d" + integrity sha512-89LP9lwgKYXZWM49mcnQS5ZGkRp5cCXEirL8bopNLK9r84wBDhgQVKU9/YG5hgeJHjHcyP64dUCDwrmDcysANQ== dependencies: "@emotion/hash" "^0.9.1" "@types/n3" "^1.16.4"