Skip to content

Commit

Permalink
fix: remove reliance on non-standard predicate in type indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkvon committed Jan 29, 2025
1 parent fc2a7fa commit 51f0993
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 5 additions & 4 deletions src/tasks/refreshIndex.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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',
},
{
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 51f0993

Please sign in to comment.