Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid BlankNodes inside PATCHes #390

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/humanReadablePane.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { icons, ns } from 'solid-ui'
import { Util } from 'rdflib'
import { marked } from 'marked'
import * as DOMPurify from 'dompurify'
import DOMPurify from 'dompurify';

const humanReadablePane = {
icon: icons.originalIconBase + 'tango/22-text-x-generic.png',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ exports[`getStatementsToAdd should return all required statements to add the giv
"termType": "NamedNode",
"value": "https://profile.example",
},
"object": BlankNode {
"classOrder": 6,
"isBlank": 1,
"isVar": 1,
"termType": "BlankNode",
"value": "bn_mock_app_id",
"object": NamedNode {
"classOrder": 5,
"termType": "NamedNode",
"value": "https://profile.example#mock_app_id",
},
"predicate": NamedNode {
"classOrder": 5,
Expand Down Expand Up @@ -42,12 +40,10 @@ exports[`getStatementsToAdd should return all required statements to add the giv
"termType": "NamedNode",
"value": "http://www.w3.org/ns/auth/acl#origin",
},
"subject": BlankNode {
"classOrder": 6,
"isBlank": 1,
"isVar": 1,
"termType": "BlankNode",
"value": "bn_mock_app_id",
"subject": NamedNode {
"classOrder": 5,
"termType": "NamedNode",
"value": "https://profile.example#mock_app_id",
},
},
Statement {
Expand All @@ -66,12 +62,10 @@ exports[`getStatementsToAdd should return all required statements to add the giv
"termType": "NamedNode",
"value": "http://www.w3.org/ns/auth/acl#mode",
},
"subject": BlankNode {
"classOrder": 6,
"isBlank": 1,
"isVar": 1,
"termType": "BlankNode",
"value": "bn_mock_app_id",
"subject": NamedNode {
"classOrder": 5,
"termType": "NamedNode",
"value": "https://profile.example#mock_app_id",
},
},
Statement {
Expand All @@ -90,12 +84,10 @@ exports[`getStatementsToAdd should return all required statements to add the giv
"termType": "NamedNode",
"value": "http://www.w3.org/ns/auth/acl#mode",
},
"subject": BlankNode {
"classOrder": 6,
"isBlank": 1,
"isVar": 1,
"termType": "BlankNode",
"value": "bn_mock_app_id",
"subject": NamedNode {
"classOrder": 5,
"termType": "NamedNode",
"value": "https://profile.example#mock_app_id",
},
},
]
Expand Down
2 changes: 1 addition & 1 deletion src/trustedApplications/trustedApplications.utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BlankNode, IndexedFormula, NamedNode, st, Literal, sym, Statement } from 'rdflib'

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u

Check warning on line 1 in src/trustedApplications/trustedApplications.utils.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

'BlankNode' is defined but never used. Allowed unused vars must match /^_/u
import { Namespaces } from 'solid-namespace'

export function getStatementsToDelete (
Expand Down Expand Up @@ -36,7 +36,7 @@
person: NamedNode,
ns: Namespaces
): any {
const application = new BlankNode(`bn_${nodeName}`)
const application = new NamedNode(`${person.doc().uri}#${nodeName}`)
return [
st(person, ns.acl('trustedApp'), application, person.doc()),
st(application, ns.acl('origin'), origin, person.doc()),
Expand Down
Loading