Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Version 0.3 #72

Merged
merged 38 commits into from
Jun 13, 2019
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
cdca811
trustedApp check draft
michielbdejong May 7, 2019
9dda1b2
delete temp files
michielbdejong May 9, 2019
affa31a
move knowledge of sparql-update from basicOperations to applyPatch in…
michielbdejong May 9, 2019
6dafc79
lint
michielbdejong May 9, 2019
d2b9af0
fix unit tests
michielbdejong May 9, 2019
a48ba98
fix integration tests
michielbdejong May 9, 2019
6f50267
ref #45
michielbdejong May 9, 2019
1bcd2b6
failing test for JSON-LD represented ACL doc
michielbdejong May 9, 2019
78a40a7
thanks @elf-pavlik! fix #45
michielbdejong May 11, 2019
a3a223a
failing tests for URLs in ACLs
michielbdejong May 14, 2019
7455693
test fixtures
michielbdejong May 14, 2019
2770353
makeRootAcl
michielbdejong May 17, 2019
b550e2a
makeRootAcl (fix)
michielbdejong May 17, 2019
a21a091
setRootAcl
michielbdejong May 20, 2019
29afe9d
tag v0.2.1
michielbdejong May 20, 2019
cc2638f
fix #70
michielbdejong May 22, 2019
f6a6428
refactor determineAgentsForModes to use targetUrl and contextUrl
michielbdejong May 22, 2019
1bd0b47
progress on URL handling at the auth layer
michielbdejong May 23, 2019
d10f996
whitespace
michielbdejong May 23, 2019
8423c5e
determineAllowedAgentsForModes.test passing
michielbdejong May 24, 2019
1b70d56
readAcl passing, fix #37
michielbdejong May 24, 2019
4e25e6f
all unit tests passing again
michielbdejong May 24, 2019
fb5c9ab
all tests fixed again
michielbdejong May 24, 2019
3f80210
fix build problem
michielbdejong May 24, 2019
0ba3c6e
fix build problem 2
michielbdejong May 24, 2019
c1e7029
working on agent groups
michielbdejong May 24, 2019
cd462ab
agent groups, fix #41
michielbdejong May 24, 2019
0ff6b3a
failing test for #42
michielbdejong May 24, 2019
add3d22
reading profile quads
michielbdejong May 24, 2019
eac82f2
appIsTrustedForMode - test passing
michielbdejong May 24, 2019
47f2462
update dependencies
michielbdejong May 28, 2019
c80a214
RDF constants as URLs, unit tests passing again
michielbdejong May 28, 2019
eb29ffa
70 tests green
michielbdejong May 28, 2019
f69f296
comment about node-fetch Resource (non-)mocking
michielbdejong Jun 12, 2019
0edcf42
use forEach instead of map for void iteration
michielbdejong Jun 12, 2019
bf033b3
No commas in interface definitions
michielbdejong Jun 12, 2019
0c23c49
avoid double if statement
michielbdejong Jun 12, 2019
d2ff6f0
avoid using any for AppNode
michielbdejong Jun 12, 2019
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
Prev Previous commit
Next Next commit
lint
michielbdejong committed May 9, 2019
commit 6dafc79bd2d3c67719fcb0f916dbb4a3ecffd049
4 changes: 2 additions & 2 deletions src/lib/rdf/applyPatch.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import { ResultType, ErrorResult } from '../api/http/HttpResponder'

const debug = Debug('Apply Patch')

export async function applyPatch(resourceData: ResourceData, sparqlQuery: string, fullUrl: string, appendOnly: boolean) {
export async function applyPatch (resourceData: ResourceData, sparqlQuery: string, fullUrl: string, appendOnly: boolean) {
const store = rdflib.graph()
const parse = rdflib.parse as (body: string, store: any, url: string, contentType: string) => void
parse(resourceData.body, store, fullUrl, resourceData.contentType)
@@ -29,4 +29,4 @@ export async function applyPatch(resourceData: ResourceData, sparqlQuery: string
})
debug('after patch', store.toNT())
return rdflib.serialize(undefined, store, fullUrl, 'text/turtle')
}
}