packages-semweb
packages-semweb copied to clipboard
The SWI-Prolog RDF store
The following TriG file has an empty namespace prefix ``` @prefix rdfs: . @prefix : . :A rdfs:subClassOf :B. ``` and reading it via `rdf_read_turtle(stream(In), Triples, [base_uri(Arg), format(trig), prefixes(Pfxs), on_error(error)]),`...
The `rdf_murmer_hash` declaration in murmur.h and the big endian definition in murmur.c both have `size_t` as the type of the second argument, `len`. Make the little endian definition match the...
When using sparql_client with authorization, once the results have been consumed another request is made without the authorization, resulting in a 401 response and error. This prevents SPARQL queries that...
When a dataset that contains blank nodes is processed in the Semantic Web standard libraries, blank nodes are assigned auto-generated labels. The URI representation of the file path from which...
`rdf_current_prefix(:Alias, ?URI)` is currently documented as follows: > If Alias is unbound and one URI is the prefix of another, the longest is returned first. This allows turning a resource...
The Turtle/TriG parser does not return the empty prefix: ```trig prefix : prefix a: ``` ```prolog ?- use_module(library(semweb/rdf_db)). ?- use_module(library(semweb/turtle)). ?- rdf_load('test.trig', [prefixes(L)]), ``` Observe that `L` only contains the...
Steps to reproduce: ```prolog ?- [library(semweb/rdf_db)]. ?- [library(semweb/turtle)]. ?- rdf_assert(rdf:s, rdf:p, rdf:o). ?- rdf_save_canonical_trig('test.trig', []). ``` File `test.trig` now has the following content: ```trig @prefix rdf: . { rdf:s rdf:p...
Currently, `lookup/2` of `rdf_statistics/1` fails when the number of times the given Triple Pattern has been queried is zero. For consistency's sake, is it not better to have it success...
Is it possible to use RDF prefix expansion in predicates that are hooks in `semweb/rdf11`? In the following example, I try to add a clause to the hooks in `rdf11`,...
```prolog :- use_module(library(semweb/rdf11)). test1 :- rdf_assert(a, a, a, a), rdf_transaction(test2, _, [snapshot(true)]). test2 :- rdf_assert(b, b, b, b), forall(rdf_graph(G), write(G)), nl, forall(rdf_graph(G), rdf_unload_graph(G)), forall(rdf_graph(G), write(G)), nl. ``` Running `?- test2.`...