Repository navigation
Develop - #595
Open
namedgraph wants to merge 77 commits into
Open
Develop#595namedgraph wants to merge 77 commits into
namedgraph wants to merge 77 commits into
Conversation
…im hands the stylesheets flat triples with full IRIs and fills in the source locations and query members the generator needs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s label, so the generator prints it and constructor instances, value-range markers and RDF/XML descriptions find it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…raqula's AST, and its rewrites build EXISTS, IN and DESC the way Traqula's generator prints them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ilds the CONSTRUCT it saves, in Traqula's AST Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ting in a modal and removing a resource build their triples and updates in Traqula's AST Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…able name, as Traqula keys VALUES rows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he parser shim adds when it generates the query Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a as the browser's SPARQL parser, and the CHANGELOG records the switch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…attern, a match pattern Saxon-HE compiles as well as Saxon-JS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e Traqula port had keyed by its JSON node Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a template triple, so the add-row button, which calls it from the HTML form, no longer passes the button to ldh:term-key Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The inline-creation submit keeps develop's containment check and derived title, with the linking and title triples built as Traqula terms. The text-search rewrite from #556 is ported to the Traqula shape: the bgp goes into where/patterns, and the query literal is no longer escaped by hand, since Traqula's generator escapes it on output. The constructor VALUES keeps develop's $for-class name and Traqula's sigil-less key. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
#570) The endpoint used to authorize only the use of /sparql and sent the query to the store unchanged, so any endpoint user read every graph, including those of other dataspaces on a shared store. The query is now rewritten on the fly: every GRAPH access and graph-name listing is guarded by documentContextQuery with $this bound to the graph, joined with the agent's grant rows from aclQuery's pattern, which is the per-document decision read in the opposite direction. The default graph is empty unless the dataset description names readable graphs, the union graph is refused, SERVICE passes through. The decision moves from AuthorizationFilter into Authorizer, which Access also uses. Anonymous query POSTs cached by the frontend are tagged with the access-control scope, so authorization changes evict them. Lean: guard_iff proves the guard grants exactly what the per-document decision does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The paging (#562) and text facet filter that develop added rewrite SPARQL.js's query JSON; ported to Traqula's: LIMIT and OFFSET are replaced in the outer query's solutionModifiers alone, the text FILTER is built and matched as a Traqula filter pattern, and a chart's page is kept in the solutionModifiers shape the pager reads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er Traqula-parsed queries Each mode and function runs on Saxon-JS 3.0.0-beta2, the engine the SEF build uses, over a query the Traqula bundle parses, and the result is compared as the SPARQL Traqula generates from it. The stylesheet is compiled with its DTD entities expanded, with the two functions it calls from imports/default.xsl copied from that file. The JS-tests workflow runs these and the bundle's own tests, which no workflow ran before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ss control lds:Dataset, lds:prefix and lds:backendProxy, never declared in any configuration and never authenticated, are replaced by lds:Mount with lds:mountPoint and lds:target. A mount point ending in a slash maps its subtree (mount point + rest to target + rest), any other exactly its own URI; the query string passes through, and the longest mount point wins. A mounted request is no longer a case of the ?uri= proxy filter, which runs ahead of access control. The Dispatcher hands it to a Mount resource once AuthenticationFilter and AuthorizationFilter have run: it is authorized by its method against the mount point, then forwarded with its headers and body to the target, reached directly. The target's status, end-to-end headers and entity tag come back, and its body is streamed untouched, with no response length limit: a reader who hangs up closes the target's connection, and the socket timeout bounds the wait between chunks. Local hypermedia is not added to a mounted response. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A PUT that would create a document at a mounted URI or beneath a mount point's path is refused with 409 Conflict, so nothing in the store is ever hidden by a mount or hangs off a URI that is another server's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…behalf ServiceTargets decides mounts before the dataspace branch, which answers 400 for anything on a dataspace origin but its /sparql. A mounted URI is accepted, not checked by address (its target is internal, but the query names the mount point), and marked for delegation like a dataspace's endpoint: the store's module calls it through the front door as the secretary on behalf of the asker, so the mount's access rule decides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A view or query block reading its results from an endpoint other than the reader's own tunnels that endpoint into the rendering. A resource it lists that is none of this instance's dataspaces' has no document here to open, so its list row, grid card and table anchor now link to DESCRIBE <resource> on that endpoint (through the proxy when cross-origin) instead of dereferencing the resource's URI. Rows over the reader's own endpoint, and resources of the instance's dataspaces, link to their documents as before. The browser test's service mock answers the DESCRIBE a row links to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…documents beneath Two mounts are declared in the suite's system.trig onto the test store: an exact one onto the end-user dataset's query endpoint, a subtree one onto the store's root. The new mount/ suite checks that a reader granted acl:Read queries through the exact mount and an anonymous or ungranted one is refused; a POSTed query needs acl:Append; a URI beneath an exact mount point and an unmounted URI are the store's (404); the rest of a subtree path reaches the target, whose own status passes back; a result past the 5 MiB response limit passes whole; and a document beneath a mount point is refused with 409. Two SPARQL protocol tests check that SERVICE to a mounted URI is delegated to the asker, and refused for an asker the mount point does not grant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and notes A mounted request is authenticated like any other, so authenticate loses the lds:Dataset branch that left it anonymous and gains none. The ACL, graph store and uploads models record why the mount changes to AuthorizationFilter and the graph store stand without touching them. The changelog records lds:Mount in place of lds:Dataset and the view rows that describe through their endpoint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ACL query finds a group's members only in the requesting dataspace's admin dataset, so an authorization in the root naming the Sales dataspace's readers never matched. When the ACL query grants no authorization with the requested mode, AuthorizationFilter now finds the document's authorizations that name a group whoever its members (aclGroupQuery), and for each group whose URI matches another admin dataspace of this instance (Application.matchApp, as for any request) asks that dataspace's own admin dataset, read-only through its own service, whether the agent is a member by the group's own document (groupMemberQuery). Answers are kept on the request, so the HEAD fallback and the upload documents do not ask again. A group of this dataspace stays the ACL query's, and a group of another instance is not followed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… whatever order the tests run in Run first (as in a Docker build), BuiltinPersonalities' static initializer started Jena out of order and every test after it in the JVM failed with NoClassDefFoundError; CI ran it later and passed. As PublicContextTest does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s instance" This reverts commit 6817527.
…y other request, by its own URI AuthorizationFilter is as on develop, less the injection of the old lds:Dataset, which nothing read. An exact mount point is granted by an authorization naming it; beneath a subtree mount point each URI is decided as itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md # src/main/java/com/atomgraph/linkeddatahub/server/model/impl/SPARQLEndpointImpl.java
…'s one-line entries, with #570's cut to one Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ut documents goes ldh:resource-href is transcribed in formal/client/LdhClient/Resource.lean, with ldh:parse-href. Every such link stays on the page's origin; without a service whose resources have no documents it is the link views drew before; with one, it opens a DESCRIBE on the service's endpoint carrying the service, which the opened page reads back and links by. tracks-code.sh tracks the three functions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
misc/GET-context.sh failed in CI with `line 21: echo: write error: Broken pipe` on a /context that carried every triple it checked for. `echo "$context" | grep -q …` races under `set -o pipefail`: grep -q exits on its first match, an echo still writing then gets SIGPIPE, and the pipeline fails. With `|| exit 1` that fails a passing test; inside `if` it takes the no-match branch, so a check for a leak can pass over the leak. 24a3bb8, d0d8a58 and 8b9ff76 fixed this per test, choosing the sites by how large the response and how early the match. GET-context was one that choice left alone. This change fixes the pattern instead: wherever grep -q, grep -m or head reads a body directly, it reads a here-string. 201 `echo "$var" | grep -q …` become `grep -q … <<< "$var"`, and 3 `echo "$var" | grep -m1` likewise; 15 `curl`/`ldh get`/`ns_terms`/`links … | grep -q` capture the body first, then grep the here-string; 6 `echo "$var" | head` become `head <<< "$var"`, and two `tr ',' '\n' | grep -q` over Link headers take the split header as a here-string. Unchanged: the readers of `curl -w "%{http_code}" -o /dev/null`, which writes three bytes in one go; the chains whose filtering grep reads to EOF and writes its few lines once; one-line writers such as `head -1 file`; and diagnostics already guarded with `|| true`. Two negative checks change behaviour on a failed read: PATCH-proxied-anonymous-403.sh and PATCH-remote-document-unauthorized.sh used to pass when the owner's `curl -f` of the document failed, and now stop there under `set -e`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SPARQL endpoint answers a query from the graphs the agent may read (#570)
Replace SPARQL.js with Traqula (#429)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…omment The rewrite to here-strings appended `<<< "$link_format"` after a trailing comment in versioning/GET-timemap.sh, so the comment swallowed it and grep read an empty stdin: the test failed on #596. The same rewrite turned the `echo "$response" | grep -q` quoted in two explanatory comments (language/content-language-by-reader.sh, proxy/GET-proxied-mapped-vocab.sh) into nonsense; they read as before again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
namedgraph
force-pushed
the
develop
branch
2 times, most recently
from
December 3, 2026 13:02
94158a4 to
4260f3e
Compare
lds:Mount in place of lds:Dataset: a mapped URI space behind access control, streamed
A service whose resources have no documents says so, and links to them are a DESCRIBE on it
A reader that stops early takes its input from a here-string
Every dataspace publishes /.well-known/void, a VoID description of its dataset with one void:classPartition per class, and links it from every response with rel=void:inDataset. The counts live in the store's <urn:linkeddatahub:statistics> graph: the graph store applies each write's change in counts, and a full recount runs after seeding and, as the class-stats compose service, on the TDB2 files before Fuseki starts. The drawer's class list reads its ten largest classes from the active pane's description, and counts live at the endpoint only where the store links none or it has no counts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The document tree pages a large container without ORDER BY, which sorted every child before returning the first (56 s over 547k children). The class list is not reloaded while a load is still in flight, and a drawer section that fails after an earlier failure removed it degrades silently instead of raising an alert. From #593, without its class list query: the list ranks by the VoID description's counts instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
develop moved the authorization filter's store reads into Authorizer, so the filter is develop's and Authorizer's loadModel and loadResultSet pass the store's response through successful(), as the filter's did. The changelog keeps develop's Unreleased entries and adds this branch's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The released Web-Client 6.1.3 and the Core 5.1.2 it brings, in place of their snapshots; cli/pom.xml's core.version set by make cli-version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The VoID description is built afresh for each request, so classes with equal counts came back in a different order, and across the tenth row a different set, on every load. The rate limit spec saw it as a class label lookup the unrefused load never made. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Store failures answer 502/504; YASQE 4; the drawer's queries within the timeout
develop's "The drawer's queries stay within a large dataspace's query timeout" (a7b8140) and this branch both changed the drawer's class list. Combined: - ranked by the VoID description's counts where the store links one (this branch); - otherwise any ten classes that have instances, uncounted (develop): the live COUNT this branch kept as the fallback is the query that ran past the store's 60 s timeout on a 35M-triple dataspace. The branch's UNION over the default graph and its exclusion of the statistics graph are kept; the response handler already ranks by ?count only when the query binds one; - loaded once per page, a list that has rows left alone (develop). CHANGELOG: one line for the combined class list, develop's Fixed entries kept. formal/acl/README.md: both new bullets kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The drawer ranks classes by the dataspace's VoID description
namedgraph
marked this pull request as ready for review
December 4, 2026 09:17
Maven Central limits each organization's monthly release size, and the 44 MB WAR was most of every release: 6.7.0 was refused as over the limit. The release profile packages a jar and skips the war goal, which would otherwise replace the main artifact with the WAR. The -classes jar goes too, since the main artifact is now the classes. The Docker image builds its own webapp from source and is unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A release publishes the classes as a jar, with no WAR
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.