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

LinkedDataHub v5 WIP #198

Open
wants to merge 1,505 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1505 commits
Select commit Hold shift + click to select a range
03f07eb
Added `serialize()` call
namedgraph Aug 13, 2024
ab54611
Debug `$row`
namedgraph Aug 13, 2024
0ae2a9a
Debug `ldh:LoadBlock`
namedgraph Aug 13, 2024
da59ea1
Lookup resource by `$content-uri` instead of `$this`
namedgraph Aug 13, 2024
6f703f7
Applying `ldh:LoadBlock` instead of calling as a named template
namedgraph Aug 13, 2024
0daf802
Restored `ldh:LoadBlock` named template
namedgraph Aug 13, 2024
fa4ec4f
Fixed `@match` value
namedgraph Aug 13, 2024
5ce6c2e
Fixed param value
namedgraph Aug 13, 2024
ae24416
Fixed named template call
namedgraph Aug 13, 2024
9d76265
Render `$type-content` as a separate `div.row-fluid` after the main `…
namedgraph Aug 13, 2024
bc2059e
Call `ldh:BlockLoaded` instead of applying `ldh:RenderBlock` mode dir…
namedgraph Aug 18, 2024
f3df577
Fixed `sp:` declaration
namedgraph Aug 18, 2024
4237c3f
Fixed `spin:` declaration
namedgraph Aug 18, 2024
1e4089c
New `ldh:BlockLoaded` template
namedgraph Aug 18, 2024
e8bcd9c
Added missing `$this ` param
namedgraph Aug 18, 2024
b0820d0
Debug `ldh:BlockLoaded`
namedgraph Aug 18, 2024
f9c601d
Fixed `$block` param value
namedgraph Aug 18, 2024
92649f1
`.content` class back on object and view blocks
namedgraph Aug 18, 2024
3b7e05e
Passing `$doc` to `ldh:LoadBlock`
namedgraph Aug 19, 2024
063015c
Passing `$doc` to `ldh:LoadBlock`
namedgraph Aug 19, 2024
3c3fd35
`ldh:BlockRendered` as a match template instead of a named template
namedgraph Aug 19, 2024
63cf2bd
Debug `ldh:BlockRendered` mode
namedgraph Aug 19, 2024
410a2d8
`ldh:BlockRendered` fix?
namedgraph Aug 19, 2024
e216828
Tunnel `$show-edit-button` into `ldh:RenderBlock`
namedgraph Aug 22, 2024
ae2f9e1
Override `ldh:BlockRendered` mode for `ldh:XHTML`, `ldh:Object`, `ldh…
namedgraph Aug 22, 2024
527e429
Cleanup
namedgraph Sep 2, 2024
653bc89
Graph `PUT` does not require document resource in the request graph a…
namedgraph Oct 6, 2024
d2c5046
Renamed `resource.graph.Item` to `resource.Graph`
namedgraph Oct 6, 2024
84bd3ae
Fixed `$container` value?
namedgraph Oct 6, 2024
819cac4
SNAPSHOT bump
namedgraph Oct 7, 2024
b72aff0
Moved SPARQL query form rendering to the client side
namedgraph Oct 7, 2024
5f7912f
Fixed `$query` value
namedgraph Oct 7, 2024
7e71a08
Try to fix `$query` again
namedgraph Oct 7, 2024
cca821d
Removed `bs2:Header` call
namedgraph Oct 8, 2024
ec22b7d
Use `$textarea-id` on `<textarea>` and not on `<form>` :)
namedgraph Oct 8, 2024
24dbab9
Fixed `.sparql-query-form.form-horizontal`
namedgraph Oct 8, 2024
f04f26c
Initial code for block control toggling
namedgraph Oct 17, 2024
f83abec
Fixed argument of `ixsl:call()`
namedgraph Oct 17, 2024
52364af
Debug `onmousemove`
namedgraph Oct 17, 2024
84b3e92
Remove datatype
namedgraph Oct 17, 2024
b406782
Debug `$y`
namedgraph Oct 17, 2024
4c16b73
Re-introduced `.block` class
namedgraph Oct 17, 2024
a70e78a
Debug `onmousemove`
namedgraph Oct 17, 2024
640de72
Replaced `getBoundingClientRect()` with `offsetY`
namedgraph Oct 17, 2024
723b7e5
Changed `$offset-y` calculation
namedgraph Oct 17, 2024
4716207
Attempt to fix `$offset-y` value
namedgraph Oct 17, 2024
b1fbf91
Toggle block controls on/off during `onmousemove`
namedgraph Oct 17, 2024
be0d8d6
Toggle the `.btn-edit` button only and not the whole row
namedgraph Oct 17, 2024
e9038a1
Declared `fn:` namespace
namedgraph Oct 17, 2024
ff89d1a
Fixed `display: none` placement
namedgraph Oct 17, 2024
01fe53d
Use `z-index: -1` to hide the row with the block controls
namedgraph Oct 17, 2024
d4a922b
Check X coordinate as well when toggling block controls
namedgraph Oct 17, 2024
a65ecb0
`$offset-x` fix
namedgraph Oct 17, 2024
1f0caf3
Use `$width` to check mouse at the right edge
namedgraph Oct 17, 2024
7058bc0
Fixed `$block` value for when block content is saved
namedgraph Oct 17, 2024
eb6268c
Use import-specific `Client` for the `LinkedDataClient` in `Graph::su…
namedgraph Oct 18, 2024
53f6879
Fixed `$class` in admin-specific `bs2:RowForm`
namedgraph Oct 18, 2024
55265ce
Actually pass `$method` to `bs2:RowForm`
namedgraph Oct 18, 2024
4a963f7
Set `ClientProperties.REQUEST_ENTITY_PROCESSING` on `ClientConfig` ra…
namedgraph Oct 18, 2024
b0c021f
Fixed log message
namedgraph Oct 18, 2024
fb145d1
Guard against multiple subject URI/bnode values as there can be neste…
namedgraph Oct 18, 2024
4c8c962
Fixed `$resource-uri`/`$resource-bnode` expressions
namedgraph Oct 18, 2024
8e1e114
Use `RequestEntityProcessing.BUFFERED` on all HTTP clients
namedgraph Oct 18, 2024
8c9a491
Fixed `URIResource` check
namedgraph Oct 18, 2024
fa684ce
Only show block controls is agent has `acl:Write` permission
namedgraph Oct 20, 2024
ac16323
Check ACL when rendering block's `.btn-edit` server-side
namedgraph Oct 20, 2024
ed8431f
Simplified `CSVGraphStoreRowProcessor::add` method
namedgraph Oct 21, 2024
9c4c059
Try to use `ApacheConnectionClosingStrategy.GracefulClosingStrategy()`
namedgraph Oct 22, 2024
e708a42
Pass optional `$chart-uri` to the `onSPARQLResultsLoad` template
namedgraph Oct 23, 2024
8f93c9c
Added `MAX_IMPORT_THREADS` env variable (default value is 10)
namedgraph Oct 23, 2024
085a326
Debug `$category`/`$series`
namedgraph Oct 24, 2024
e17e50a
Debug `$forClass`
namedgraph Oct 24, 2024
c60c801
Fix `$forClass` value in `ldh:ResourceUpdated` by adding `@typeof` on…
namedgraph Oct 24, 2024
4542e90
`ldh:ResourceUpdated` does not use neither `$container` nor `$forClas…
namedgraph Oct 24, 2024
2654f11
Removed `$container` usage
namedgraph Oct 24, 2024
28f1869
Removed `$resource` usage
namedgraph Oct 24, 2024
bef5662
Attempt to handle constraint violations in modal forms in `ldh:Resour…
namedgraph Oct 24, 2024
f068fa6
Fixed XSLT syntax
namedgraph Oct 24, 2024
d7ffb03
Fixed var name
namedgraph Oct 24, 2024
b0497ad
Fixed var name
namedgraph Oct 24, 2024
2d7dcad
`$base-uri` fix
namedgraph Oct 24, 2024
d56a1c2
Fixed `$body` context
namedgraph Oct 24, 2024
7bf8844
Fixed `$method` and `$action`
namedgraph Oct 24, 2024
6fa856f
Moved `spin:ConstraintViolation`-suppressing templates to the client-…
namedgraph Oct 24, 2024
50cefcb
Don't apply `ldh:PostConstruct` in `ldh:ResourceUpdated` as `ldh:Rend…
namedgraph Oct 24, 2024
8743ed3
Attempt to fix block drag-and-drop by basing it on the `.block` class
namedgraph Oct 24, 2024
b824ca5
Try to fix `$query` value
namedgraph Oct 25, 2024
7a63745
Replace server-side query content except header
namedgraph Oct 29, 2024
a56e7b7
Fixed `sp:` namespace in `<queries/#select-queries-query>`
namedgraph Oct 29, 2024
515a15f
Removed `version` from docker-compose config
namedgraph Oct 29, 2024
391f5da
Make `div.violations` visible
namedgraph Oct 30, 2024
4675504
Fixed ` WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not m…
namedgraph Nov 1, 2024
552b2c2
`ldh:View` and `ldh:Object` specific templates (not all yet) moved to…
namedgraph Nov 1, 2024
1d34759
Fixed `rdfs:` namespace
namedgraph Nov 1, 2024
4a01fc4
New `ldh:ProcessUpdateResponse` XSLT mode for extensibility
namedgraph Nov 3, 2024
28ff1a7
Toggle display of `button.btn-edit` during `ixsl:onmousemove`
namedgraph Nov 1, 2024
1e2ba32
Commented out `ObjectMode` template
namedgraph Nov 6, 2024
616a373
Forward params via the overriding `bs2:RowForm` template
namedgraph Nov 6, 2024
08dfb2d
Added missing param
namedgraph Nov 6, 2024
9c110f2
Renamed `ldh:RenderBlock` and `ldh:PostConstruct` modes
namedgraph Nov 6, 2024
f43f062
Make `.row-fluid.block` the default class in `bs2:RowForm`
namedgraph Nov 6, 2024
e68f099
Added `.row-fluid.block` to `bs2:Row` as well
namedgraph Nov 6, 2024
cbf552b
Bumped SaxonJS to 2.7
namedgraph Nov 6, 2024
ee3b891
In `PATCH` handling, collect triples of changed resources into a new …
namedgraph Nov 8, 2024
5a3c622
Get changed model triples explicitly from the updated model
namedgraph Nov 8, 2024
6b5b67a
Removed `version` from docker-compose.http-tests.yml
namedgraph Nov 9, 2024
a40a6ac
Added `DELETE WHERE` to the forms of SPARQL Update supported by the `…
namedgraph Nov 9, 2024
d5880e5
Added new HTTP test that failes when a SPARQL Update in the `PATCH` r…
namedgraph Nov 9, 2024
a3c4248
Pass `$type-metadata` param when applying `bs2:RowForm` after constra…
namedgraph Nov 9, 2024
bfd67c9
Make `$about` optional in `btn.btn-remove-resource` handler
namedgraph Nov 10, 2024
0262511
Enabled `RequestEntityProcessing.BUFFERED` again
namedgraph Nov 10, 2024
37f29a9
Replacing `$container` with `$block` and other cleanup
namedgraph Nov 11, 2024
721050f
Load `$service` resource over HTTP from `$service-uri` instead of dep…
namedgraph Nov 11, 2024
c02c6a5
Query/chart refactoring
namedgraph Nov 11, 2024
60e30ee
Fix `$service` expression to handle empty `$service-uri`
namedgraph Nov 11, 2024
a14e303
Refactored the `ldh:triples-to-descriptions()` function using `regex(…
namedgraph Nov 13, 2024
d30c112
Fixed typed literal output in `ldh:parse-rdf-post()` - datatype URI h…
namedgraph Nov 13, 2024
67e11c0
Regex match fix to account for the fact that SPARQL.js 2.x does *not*…
namedgraph Nov 13, 2024
264aba5
Debug RDF/XML data during `PATCH` request
namedgraph Nov 13, 2024
21adada
Added `s` flag to `matches()` and `regex` in order to allow newlines …
namedgraph Nov 13, 2024
5238b00
Fixing container mode for queries
namedgraph Nov 13, 2024
b1584ca
Pass `$block` to `ldh:RenderRow` instead of `$block-uri`
namedgraph Nov 13, 2024
cd29679
Debug `$query-uri`
namedgraph Nov 13, 2024
1ca1a1c
Fixed var name
namedgraph Nov 13, 2024
aaeb144
Fix `$query-uri` value
namedgraph Nov 13, 2024
91c640e
Fixed `$block-uri` usage
namedgraph Nov 13, 2024
7f82be8
Updated chart rendering in `ldh:RenderRow` mode
namedgraph Nov 15, 2024
f097648
Build `$chart-html` in the `.btn-save-chart` handler
namedgraph Nov 15, 2024
0e186ae
Fixed `xsl:for-each` syntax
namedgraph Nov 15, 2024
512630e
Fixed `$chat-html`
namedgraph Nov 15, 2024
040035e
Apply `bs2:RowForm` on `$constructed-doc`
namedgraph Nov 15, 2024
3392826
Added missing `$resource` definition
namedgraph Nov 15, 2024
183bdf1
Define `$method`
namedgraph Nov 15, 2024
b1ea4bd
Defined `$doc-uri`
namedgraph Nov 15, 2024
93670ba
Added `@rdf:nodeID` to chart resource in the constructor
namedgraph Nov 15, 2024
99fb5db
Try to insert `$row-form` after `$block` by calling `Element.after()`
namedgraph Nov 15, 2024
27b5278
Added `$form-actions` param to `bs2:Chart` mode
namedgraph Nov 15, 2024
ee449f5
Copy following siblings of the `$block` and re-insert them after the …
namedgraph Nov 15, 2024
6fb59dd
Trace `$row-form`
namedgraph Nov 15, 2024
1833437
Added default `xmlns="http://www.w3.org/1999/xhtml"` namespace to (X)…
namedgraph Nov 16, 2024
7bfe378
Try `cdata-section-elements="script"`
namedgraph Nov 16, 2024
4a79c25
Added `CDATA` escaping hack for `<script>` elements with inline JS
namedgraph Nov 16, 2024
02dca89
Wrap `<![CDATA[` into `<xsl:text disable-output-escaping="yes">`
namedgraph Nov 16, 2024
0b9b035
More `<xsl:text disable-output-escaping="yes">`
namedgraph Nov 16, 2024
73438d5
More `<xsl:text disable-output-escaping="yes">`
namedgraph Nov 16, 2024
29756ec
More `disable-output-escaping="yes"`
namedgraph Nov 16, 2024
d7c8420
Refactored `.add-constructor` handler to call `Element.before()`
namedgraph Nov 16, 2024
1a57901
Don't call `ldh:RenderRowForm`
namedgraph Nov 16, 2024
fa17be4
Apply client-side templates on the appended row form (now following s…
namedgraph Nov 16, 2024
e5df9d9
Apply `ldh:RenderRowForm` on the inserted row form
namedgraph Nov 16, 2024
d4460b8
Store `$block-html` when `.btn-edit` is clicked (HTML before editing …
namedgraph Nov 17, 2024
4271790
Fixed var name
namedgraph Nov 17, 2024
a8194fe
Commented out unused code
namedgraph Nov 17, 2024
0a1f4f4
Create new `window.LinkedDataHub.contents[$about]` object if it doesn…
namedgraph Nov 17, 2024
7a547e2
Fixed the type of `$block-html`
namedgraph Nov 17, 2024
72374c6
Restore snapshot of block HTML that was captured before entering edit…
namedgraph Nov 17, 2024
e7debbb
Fixed var name
namedgraph Nov 17, 2024
32f1f93
Debug `$block`
namedgraph Nov 17, 2024
5728ef9
Debug `.btn-edit $block`
namedgraph Nov 17, 2024
f86184d
Store `$block-html` as a clone of `$block`
namedgraph Nov 17, 2024
becfb6c
Make a deep clone of `$block` instead of shallow one
namedgraph Nov 17, 2024
8fc67d4
Remove the `$block-html` value after it has been used
namedgraph Nov 17, 2024
042e35b
Attempt to handle `.btn-cancel` with a single template in form.xsl
namedgraph Nov 17, 2024
0e02df2
Cleanup
namedgraph Nov 17, 2024
4260925
Getting rid of `bs2:RowContent` mode
namedgraph Nov 21, 2024
ac52be7
Re-introduced `$main-class` param to `bs2:Row` mode
namedgraph Nov 21, 2024
bb23114
Stripping namespaces in `ldh:XHTMLContent` mode should not be necessa…
namedgraph Nov 21, 2024
8905aaa
Don't copy namespaces in the `ldh:XHTMLContent` identity transform
namedgraph Nov 21, 2024
f4609c6
Replaced `VARNISH_TTL` env var (which has no effect) with `command: -…
namedgraph Nov 21, 2024
f5822ec
Fixing Varnish's `command`
namedgraph Nov 21, 2024
9144165
Added `$@` to the varnish entrypoint
namedgraph Nov 21, 2024
0948d14
Escaped `$`
namedgraph Nov 21, 2024
37bfc3c
Try to fix Varnish entrypoint
namedgraph Nov 21, 2024
f90368b
Escape `$`
namedgraph Nov 21, 2024
d177afc
Another attempt to fix entrypoint
namedgraph Nov 21, 2024
f115a97
Fix entrypoints of other Varnish services
namedgraph Nov 21, 2024
cb4ece0
Default Varnish VCL template only allows cookies in the admin app (fo…
namedgraph Nov 21, 2024
24d7ee9
Changed VCL
namedgraph Nov 21, 2024
b370428
Add `req.http.Client-Cert` value to the Varnish hash instead of passi…
namedgraph Nov 22, 2024
cf5730a
Include SHA-256 hash of the `Client-Cert` header in the cache key
namedgraph Nov 22, 2024
5032044
Don't use digest, hash `req.http.Client-Cert` directly
namedgraph Nov 22, 2024
6f09257
Removed usage of `remote` clients in the VCL
namedgraph Nov 22, 2024
0e9c444
Include `LinkedDataHub.id_token` cookie value in the VCL hash, if it …
namedgraph Nov 22, 2024
d5fc56d
Hash user-specific content only when (X)HTML is returned
namedgraph Nov 22, 2024
4d6164d
Revert the `vcl_hash()` logic. Authenticated (X)HTML requests are not…
namedgraph Nov 22, 2024
1a062dd
Do not cache (X)HTML requests that have a `LinkedDataHub.id_token` co…
namedgraph Nov 22, 2024
2c16b28
`ldh:View` is now a "normal" resource, not a content block
namedgraph Nov 24, 2024
a559653
Transclude `ldh:View` instances via `ldh:Object`
namedgraph Nov 24, 2024
512fbe4
Dataset fixes
namedgraph Nov 24, 2024
9a56b31
Debug `ldh:LoadBlockObjectMetadata`
namedgraph Nov 24, 2024
dcb5265
Fix `$block` expression in view's `bs2:RenderRow` mode
namedgraph Nov 24, 2024
5474bb8
Added icon for `.btn-view`
namedgraph Nov 24, 2024
22b464d
Removed the unused `Reserialize` Saxon function (replaced with a pure…
namedgraph Nov 24, 2024
1d084a3
Moved the `ldh:reserialize` function to server-side
namedgraph Nov 24, 2024
cb8063a
Optimized authorization query
namedgraph Nov 24, 2024
1bf10ac
Auth query optimization
namedgraph Nov 26, 2024
99631b6
Take care not to load unnecessary documents over HTTP when the respon…
namedgraph Nov 26, 2024
a4894cd
Fixed `$block-values` expression?
namedgraph Nov 26, 2024
78c5c55
Separate VCL template for `varnish-end-user`/`varnish-admin`
namedgraph Nov 26, 2024
a4a7e8b
Set `mem_limit` on `linkeddatahub` service
namedgraph Dec 13, 2024
91ec684
`ldh:ViewQueryLoad` now sets both `$this` and `$about` on the view query
namedgraph Dec 15, 2024
406cd25
`$about` in the query gets set to the `@about` of the *parent* block
namedgraph Dec 15, 2024
32f15dc
Fixed `$select-string` expression
namedgraph Dec 15, 2024
2f85710
Fixed var name in `$template-query`
namedgraph Dec 15, 2024
8b42c02
Attempt to unify `bs2:Row` templates
namedgraph Dec 16, 2024
d778d7e
Attempt to fix `bs2:Row`
namedgraph Dec 16, 2024
72c6bb9
`$about` param is unused
namedgraph Dec 16, 2024
5d2f13a
Set unique `@about` for blocks loaded from `ldh:template`s
namedgraph Dec 17, 2024
c0d1dc8
Fixed `$about` expression
namedgraph Dec 17, 2024
34c8973
Set `@id` on blocks from `$block-values`
namedgraph Dec 18, 2024
cc5cc28
Fixed `$id` value
namedgraph Dec 18, 2024
c14c149
SNAPSHOT bump
namedgraph Dec 18, 2024
195dd34
Updated the `ldh:ChildrenViewContructor` as well as the CLI script to…
namedgraph Dec 18, 2024
273e802
chmod script
namedgraph Dec 19, 2024
295b189
Made `$title` arg optional in `add-object-block` CLI script
namedgraph Dec 19, 2024
06fd3b6
Fixed `$form-actions` cardinality
namedgraph Dec 20, 2024
cc3c68c
Typo fix
namedgraph Dec 20, 2024
7021ba1
If there is no block, the chart is rendering the current document
namedgraph Dec 20, 2024
44b946c
Don't hide the progress bar when `ldh:Object` finishes loading
namedgraph Dec 20, 2024
c278d25
Make sure view and chart rendering hides the row with the block controls
namedgraph Dec 20, 2024
b84e383
Fix the `div.span12` expression
namedgraph Dec 20, 2024
2176027
Do not set `z-index`
namedgraph Dec 20, 2024
e270cbc
Attempt to fix progress bar expression
namedgraph Dec 20, 2024
7377c61
Hide progress bar in default `ldh:RenderRow`
namedgraph Dec 21, 2024
290bd73
Try to fix XPath
namedgraph Dec 21, 2024
b2ddc4f
Attempt to hide the progress bar by adding an override of `ldh:Render…
namedgraph Dec 22, 2024
0d1a9b3
Try to fix `@typeof` pattern
namedgraph Dec 22, 2024
e1534f6
Removed `[@about]` from the chart match pattern in `ldh:RenderRow` mode
namedgraph Jan 3, 2025
441ece5
Debug anchor onclick template match
namedgraph Jan 4, 2025
91aee0e
XPath fix
namedgraph Jan 4, 2025
c658636
In the `ldh:base-uri` function, make sure to strip the fragment ID fr…
namedgraph Jan 4, 2025
afca8c3
Undo debug output
namedgraph Jan 4, 2025
4f8d966
Set `mem_limit` on `linkeddatahub` service
namedgraph Dec 13, 2024
0488d13
Merge branch 'rf-retry-handler' of github.com:AtomGraph/LinkedDataHub…
namedgraph Jan 6, 2025
f2746ba
Define `MAX_REQUEST_RETRIES` in the Dockerfile and pass it to `Applic…
namedgraph Jan 6, 2025
c9c8a29
SNAPSHOT bump
namedgraph Jan 7, 2025
c2aa382
SNAPSHOT bump
namedgraph Jan 10, 2025
5c4af3d
Fixing HTTP tests to reflect the fact that `application/xhtml+xml` is…
namedgraph Jan 10, 2025
9463256
Fixed `xhtml:DefinitionDescription` RDFa override for language-tagged…
namedgraph Jan 10, 2025
f3411b5
Attempt to fix block drag-and-drop by only allowing it on top-level b…
namedgraph Jan 11, 2025
3bfd029
Drag start fix
namedgraph Jan 11, 2025
061ec51
Debug `ondragstart`
namedgraph Jan 11, 2025
1b1ae3d
Debug `ixsl:ondragstart`
namedgraph Jan 11, 2025
6f05b87
Get the top-level block for this block (could be self) and use its URI
namedgraph Jan 11, 2025
8793d76
Blocks nested within `ldh:Object` are not draggable
namedgraph Jan 11, 2025
0536412
Debug `ondragstart` block
namedgraph Jan 11, 2025
78bdf83
`ixsl:ondragstart` refactoring
namedgraph Jan 11, 2025
e2ad895
`atomgraph/letsencrypt-tomcat` base image bump (now multi-platform!)
namedgraph Jan 14, 2025
a7ac2e6
GitHub workflow that builds a multi-platform Docker image and pushes …
namedgraph Jan 14, 2025
20c327b
`atomgraph/fuseki` image bump
namedgraph Jan 14, 2025
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
8 changes: 4 additions & 4 deletions .github/workflows/http-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Build Docker image and run HTTP test suite against it
runs-on: ubuntu-latest
env:
ASF_ARCHIVE: http://archive.apache.org/dist/
ASF_ARCHIVE: https://archive.apache.org/dist/
JENA_VERSION: 4.7.0
BASE_URI: https://localhost:4443/
OWNER_CERT_PWD: changeit
Expand All @@ -30,14 +30,14 @@ jobs:
shell: bash
working-directory: http-tests
- name: Build Docker image & Run Docker containers
run: docker-compose -f docker-compose.yml -f ./http-tests/docker-compose.http-tests.yml --env-file ./http-tests/.env up --build -d
run: docker compose -f docker-compose.yml -f ./http-tests/docker-compose.http-tests.yml --env-file ./http-tests/.env up --build -d
- name: Wait for the server to start...
run: while ! (status=$(curl -k -s -w "%{http_code}\n" https://localhost:4443 -o /dev/null) && echo "$status" && echo "$status" | grep "403") ; do sleep 1 ; done # wait for the webapp to start (returns 403 by default)
- name: Run HTTP test scripts
run: ./run.sh "$PWD/ssl/owner/cert.pem" "${{env.OWNER_CERT_PWD}}" "$PWD/ssl/secretary/cert.pem" "${{env.SECRETARY_CERT_PWD}}"
shell: bash
working-directory: http-tests
- name: Stop Docker containers
run: docker-compose --env-file ./http-tests/.env down
run: docker compose --env-file ./http-tests/.env down
- name: Remove Docker containers
run: docker-compose --env-file ./http-tests/.env rm -f
run: docker compose --env-file ./http-tests/.env rm -f
44 changes: 44 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: ci

on:
push:
tags:
- '*'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Extract version parts
id: version
run: |
VERSION="${{ github.ref_name }}"
MAJOR="${VERSION%%.*}"
MINOR="${VERSION%.*}"
MINOR="${MINOR#*.}"
echo "MAJOR=$MAJOR" >> $GITHUB_ENV
echo "MINOR=$MAJOR.$MINOR" >> $GITHUB_ENV
echo "FULL_VERSION=$VERSION" >> $GITHUB_ENV

- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: |
atomgraph/linkeddatahub:latest
atomgraph/linkeddatahub:${{ env.FULL_VERSION }}
atomgraph/linkeddatahub:${{ env.MINOR }}
atomgraph/linkeddatahub:${{ env.MAJOR }}
24 changes: 17 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3.8.4-openjdk-17 as maven
FROM maven:3.8.4-openjdk-17 AS maven

# download and extract Jena

Expand All @@ -22,7 +22,7 @@

# ==============================

FROM atomgraph/letsencrypt-tomcat:10.1.4
FROM atomgraph/letsencrypt-tomcat:10.1.34

LABEL maintainer="martynas@atomgraph.com"

Expand All @@ -38,10 +38,6 @@

WORKDIR $CATALINA_HOME

# add XSLT stylesheet that makes changes to ROOT.xml

COPY platform/context.xsl conf/context.xsl

ENV CACHE_MODEL_LOADS=true

ENV STYLESHEET=static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/layout.xsl
Expand Down Expand Up @@ -102,12 +98,18 @@

ENV MAX_TOTAL_CONN=40

ENV MAX_REQUEST_RETRIES=3

ENV IMPORT_KEEPALIVE=

ENV MAX_IMPORT_THREADS=10

ENV GOOGLE_CLIENT_ID=

ENV GOOGLE_CLIENT_SECRET=

Check warning on line 109 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "GOOGLE_CLIENT_SECRET") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/

ENV SERVLET_NAME=

ENV GENERATE_SITEMAP=true

# remove default Tomcat webapps and install xmlstarlet (used for XPath queries) and envsubst (for variable substitution)
Expand All @@ -120,6 +122,14 @@
rm -rf webapps/* && \
rm -rf /var/lib/apt/lists/*

# add XSLT stylesheet that makes changes to ROOT.xml

COPY platform/context.xsl /var/linkeddatahub/xsl/context.xsl

# add XSLT stylesheet that makes changes to web.xml

COPY platform/web.xsl /var/linkeddatahub/xsl/web.xsl

# copy entrypoint

COPY platform/entrypoint.sh entrypoint.sh
Expand Down Expand Up @@ -180,7 +190,7 @@

RUN ./import-letsencrypt-stg-roots.sh

HEALTHCHECK --start-period=80s --interval=20s --timeout=10s \
HEALTHCHECK --start-period=80s --retries=5 \
CMD curl -f -I "http://localhost:${HTTP_PORT}/ns" -H "Accept: application/n-triples" || exit 1 # relies on public access to the namespace document

USER ldh
Expand Down
1 change: 0 additions & 1 deletion docker-compose.debug.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "2.3"
services:
linkeddatahub:
ports:
Expand Down
29 changes: 16 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "2.3"
services:
nginx:
image: nginx:1.23.3
Expand Down Expand Up @@ -29,6 +28,10 @@ services:
linkeddatahub:
user: root # otherwise the ldh user does not have permissions to the mounted folder which is owner by root
build: .
mem_limit: 2048m
depends_on:
- fuseki-admin
- fuseki-end-user
environment:
# - JPDA_ADDRESS=*:8000 # debugger host - performance hit when enabled
- CATALINA_OPTS=-XX:+UseContainerSupport -XX:MaxRAMPercentage=75 --add-exports java.base/sun.security.tools.keytool=ALL-UNNAMED # heap will use up to 75% of container's RAM
Expand Down Expand Up @@ -70,7 +73,7 @@ services:
- ./platform/datasets/admin.trig:/var/linkeddatahub/datasets/admin.trig:ro
- ./platform/datasets/end-user.trig:/var/linkeddatahub/datasets/end-user.trig:ro
fuseki-admin:
image: atomgraph/fuseki:4.6.1
image: atomgraph/fuseki:4.7.0
user: root # otherwise fuseki user does not have permissions to the mounted folder which is owner by root
expose:
- 3030
Expand All @@ -79,7 +82,7 @@ services:
- ./data/admin:/fuseki/databases
command: [ "--config", "/fuseki/config.ttl" ]
fuseki-end-user:
image: atomgraph/fuseki:4.6.1
image: atomgraph/fuseki:4.7.0
user: root # otherwise the fuseki user does not have permissions to the mounted folder which is owner by root
expose:
- 3030
Expand All @@ -97,12 +100,12 @@ services:
- VARNISH_HTTP_PORT=6060
- BACKEND_HOST=linkeddatahub
- BACKEND_PORT=7070
- CLIENT_HOST=linkeddatahub
- VARNISH_TTL=86400
- CLIENT_HOST=localhost
- VARNISH_SIZE=1G
entrypoint: /bin/sh -c "cp /etc/varnish/default.vcl.template /etc/varnish/default.vcl && sed -i 's|$${BACKEND_HOST}|'"$$BACKEND_HOST"'|g' /etc/varnish/default.vcl && sed -i 's|$${BACKEND_PORT}|'"$$BACKEND_PORT"'|g' /etc/varnish/default.vcl && sed -i 's|$${CLIENT_HOST}|'"$$CLIENT_HOST"'|g' /etc/varnish/default.vcl && /usr/local/bin/docker-varnish-entrypoint"
entrypoint: /bin/sh -c "cp /etc/varnish/default.vcl.template /etc/varnish/default.vcl && sed -i 's|$${BACKEND_HOST}|'"$$BACKEND_HOST"'|g' /etc/varnish/default.vcl && sed -i 's|$${BACKEND_PORT}|'"$$BACKEND_PORT"'|g' /etc/varnish/default.vcl && sed -i 's|$${CLIENT_HOST}|'"$$CLIENT_HOST"'|g' /etc/varnish/default.vcl && /usr/local/bin/docker-varnish-entrypoint \"$$0\" \"$$@\""
command: [ "-t", "86400" ] # time to live
volumes:
- ./platform/varnish.vcl.template:/etc/varnish/default.vcl.template:ro
- ./platform/varnish-frontend.vcl.template:/etc/varnish/default.vcl.template:ro
varnish-admin:
image: varnish:7.3.0
user: root # otherwise the varnish user does not have permissions to the mounted folder which is owner by root
Expand All @@ -113,11 +116,11 @@ services:
- BACKEND_HOST=fuseki-admin
- BACKEND_PORT=3030
- CLIENT_HOST=linkeddatahub
- VARNISH_TTL=86400
- VARNISH_SIZE=1G
entrypoint: /bin/sh -c "cp /etc/varnish/default.vcl.template /etc/varnish/default.vcl && sed -i 's|$${BACKEND_HOST}|'"$$BACKEND_HOST"'|g' /etc/varnish/default.vcl && sed -i 's|$${BACKEND_PORT}|'"$$BACKEND_PORT"'|g' /etc/varnish/default.vcl && sed -i 's|$${CLIENT_HOST}|'"$$CLIENT_HOST"'|g' /etc/varnish/default.vcl && /usr/local/bin/docker-varnish-entrypoint"
entrypoint: /bin/sh -c "cp /etc/varnish/default.vcl.template /etc/varnish/default.vcl && sed -i 's|$${BACKEND_HOST}|'"$$BACKEND_HOST"'|g' /etc/varnish/default.vcl && sed -i 's|$${BACKEND_PORT}|'"$$BACKEND_PORT"'|g' /etc/varnish/default.vcl && sed -i 's|$${CLIENT_HOST}|'"$$CLIENT_HOST"'|g' /etc/varnish/default.vcl && /usr/local/bin/docker-varnish-entrypoint \"$$0\" \"$$@\""
command: [ "-t", "86400", "-p", "timeout_idle=60s" ] # time to live
volumes:
- ./platform/varnish.vcl.template:/etc/varnish/default.vcl.template:ro
- ./platform/varnish-backend.vcl.template:/etc/varnish/default.vcl.template:ro
varnish-end-user:
image: varnish:7.3.0
user: root # otherwise varnish user does not have permissions to the mounted folder which is owner by root
Expand All @@ -128,11 +131,11 @@ services:
- BACKEND_HOST=fuseki-end-user
- BACKEND_PORT=3030
- CLIENT_HOST=linkeddatahub
- VARNISH_TTL=86400
- VARNISH_SIZE=1G
entrypoint: /bin/sh -c "cp /etc/varnish/default.vcl.template /etc/varnish/default.vcl && sed -i 's|$${BACKEND_HOST}|'"$$BACKEND_HOST"'|g' /etc/varnish/default.vcl && sed -i 's|$${BACKEND_PORT}|'"$$BACKEND_PORT"'|g' /etc/varnish/default.vcl && sed -i 's|$${CLIENT_HOST}|'"$$CLIENT_HOST"'|g' /etc/varnish/default.vcl && /usr/local/bin/docker-varnish-entrypoint"
entrypoint: /bin/sh -c "cp /etc/varnish/default.vcl.template /etc/varnish/default.vcl && sed -i 's|$${BACKEND_HOST}|'"$$BACKEND_HOST"'|g' /etc/varnish/default.vcl && sed -i 's|$${BACKEND_PORT}|'"$$BACKEND_PORT"'|g' /etc/varnish/default.vcl && sed -i 's|$${CLIENT_HOST}|'"$$CLIENT_HOST"'|g' /etc/varnish/default.vcl && /usr/local/bin/docker-varnish-entrypoint \"$$0\" \"$$@\""
command: [ "-t", "86400", "-p", "timeout_idle=60s" ] # time to live
volumes:
- ./platform/varnish.vcl.template:/etc/varnish/default.vcl.template:ro
- ./platform/varnish-backend.vcl.template:/etc/varnish/default.vcl.template:ro
email-server:
image: namshi/smtp
environment:
Expand Down
2 changes: 1 addition & 1 deletion http-tests/admin/GET-agent-mbox-html.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ purge_cache "$ADMIN_VARNISH_SERVICE"
# request agent's HTML description

html=$(curl -k -f -s -N \
-H 'Accept: text/html' \
-H 'Accept: application/xhtml+xml' \
"$AGENT_URI")

# check that the description does *not* include foaf:mbox property
Expand Down
2 changes: 1 addition & 1 deletion http-tests/admin/GET-request-access-html.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ purge_cache "$ADMIN_VARNISH_SERVICE"
curl -k -w "%{http_code}\n" -o /dev/null -f -s \
-G \
-E "$AGENT_CERT_FILE":"$AGENT_CERT_PWD" \
-H 'Accept: text/html' \
-H 'Accept: application/xhtml+xml' \
--data-urlencode "access-to=${END_USER_BASE_URL}" \
"${ADMIN_BASE_URL}request%20access" \
| grep -q "$STATUS_OK"
2 changes: 1 addition & 1 deletion http-tests/admin/POST-request-access.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ curl -w "%{http_code}\n" -o /dev/null -k -s \
--data-urlencode "pu=http://xmlns.com/foaf/0.1/primaryTopic" \
--data-urlencode "ob=request" \
"${ADMIN_BASE_URL}request%20access" \
| grep -q "$STATUS_OK"
| grep -q "$STATUS_CREATED"
10 changes: 7 additions & 3 deletions http-tests/admin/acl/add-post-authorization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ popd > /dev/null

# access is allowed after authorization is created

curl -k -w "%{http_code}\n" -o /dev/null -f -s \
(
curl -k -w "%{http_code}\n" -o /dev/null -s \
-E "$AGENT_CERT_FILE":"$AGENT_CERT_PWD" \
-H "Content-Type: application/n-triples" \
-H "Accept: application/n-triples" \
-H "Content-Length: 0" \
-X POST \
"$END_USER_BASE_URL" \
--data-binary @- \
"$END_USER_BASE_URL" <<EOF
<http://s> <http://p> <http://o> .
EOF
) \
| grep -q "$STATUS_NO_CONTENT"
10 changes: 7 additions & 3 deletions http-tests/admin/acl/add-post-class-authorization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ popd > /dev/null

# access is allowed after authorization is created

curl -k -w "%{http_code}\n" -o /dev/null -f -s \
(
curl -k -w "%{http_code}\n" -o /dev/null -s \
-E "$AGENT_CERT_FILE":"$AGENT_CERT_PWD" \
-H "Content-Type: application/n-triples" \
-H "Accept: application/n-triples" \
-H "Content-Length: 0" \
-X POST \
"$END_USER_BASE_URL" \
--data-binary @- \
"$END_USER_BASE_URL" <<EOF
<http://s> <http://p> <http://o> .
EOF
) \
| grep -q "$STATUS_NO_CONTENT"
10 changes: 7 additions & 3 deletions http-tests/admin/acl/add-post-group-authorization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,15 @@ popd > /dev/null

# access is allowed after authorization is created

curl -k -w "%{http_code}\n" -o /dev/null -f -s \
(
curl -k -w "%{http_code}\n" -o /dev/null -s \
-E "$AGENT_CERT_FILE":"$AGENT_CERT_PWD" \
-H "Content-Type: application/n-triples" \
-H "Accept: application/n-triples" \
-H "Content-Length: 0" \
-X POST \
"$END_USER_BASE_URL" \
--data-binary @- \
"$END_USER_BASE_URL" <<EOF
<http://s> <http://p> <http://o> .
EOF
) \
| grep -q "$STATUS_NO_CONTENT"
2 changes: 1 addition & 1 deletion http-tests/admin/acl/add-put-authorization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ popd > /dev/null

pushd . && cd "$SCRIPT_ROOT"

root_ntriples=$(./get-document.sh \
root_ntriples=$(./get.sh \
-f "$OWNER_CERT_FILE" \
-p "$OWNER_CERT_PWD" \
--accept 'application/n-triples' \
Expand Down
2 changes: 1 addition & 1 deletion http-tests/admin/acl/add-put-class-authorization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ popd > /dev/null

pushd . && cd "$SCRIPT_ROOT"

root_ntriples=$(./get-document.sh \
root_ntriples=$(./get.sh \
-f "$OWNER_CERT_FILE" \
-p "$OWNER_CERT_PWD" \
--accept 'application/n-triples' \
Expand Down
2 changes: 1 addition & 1 deletion http-tests/admin/acl/add-put-group-authorization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ popd > /dev/null

pushd . && cd "$SCRIPT_ROOT"

root_ntriples=$(./get-document.sh \
root_ntriples=$(./get.sh \
-f "$OWNER_CERT_FILE" \
-p "$OWNER_CERT_PWD" \
--accept 'application/n-triples' \
Expand Down
2 changes: 1 addition & 1 deletion http-tests/admin/add-ontology-import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pushd . > /dev/null && cd "$SCRIPT_ROOT/admin"

namespace_doc="${END_USER_BASE_URL}ns"
namespace="${namespace_doc}#"
ontology_doc="${ADMIN_BASE_URL}model/ontologies/namespace/"
ontology_doc="${ADMIN_BASE_URL}ontologies/namespace/"
import_uri="http://www.w3.org/ns/auth/acl"

# add ontology import
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ pushd . > /dev/null && cd "$SCRIPT_ROOT/admin/model"

namespace_doc="${END_USER_BASE_URL}ns"
namespace="${namespace_doc}#"
ontology_doc="${ADMIN_BASE_URL}model/ontologies/namespace/"
ontology_doc="${ADMIN_BASE_URL}ontologies/namespace/"
class="${namespace_doc}#NewClass"

./create-class.sh \
./add-class.sh \
-f "$OWNER_CERT_FILE" \
-p "$OWNER_CERT_PWD" \
-b "$ADMIN_BASE_URL" \
--uri "$class" \
--label "New class" \
--slug new-class \
--sub-class-of "https://www.w3.org/ns/ldt/document-hierarchy#Item" \
"$ontology_doc"

Expand Down
Loading
Loading