This section describes the remaining predicates of the
- Generate a unique anonymous identifier for a subject.
- True when triples for Subject are loaded from Location.
|Location ||is a term File:Line. |
- True when Generation is the current generation of the
database. Each modification to the database increments the generation.
It can be used to check the validity of cached results deduced from the
database. Committing a non-empty transaction increments the generation
When inside a transaction, Generation is unified to a term
TransactionStartGen + InsideTransactionGen. E.g., 4+3
means that the transaction was started at generation 4 of the global
database and we have created 3 new generations inside the transaction.
Note that this choice of representation allows for comparing generations
using Prolog arithmetic. Comparing a generation in one transaction with
a generation in another transaction is meaningless.
?Predicate, ?Object, -Complexity)
- Return the number of alternatives as indicated by the database internal
hashed indexing. This is a rough measure for the number of alternatives
we can expect for an rdf_has/3
call using the given three arguments. When called with three variables,
the total number of triples is returned. This estimate is used in query
optimisation. See also rdf_predicate_property/2
additional information to help optimizers.
- Obtain statistics on the RDF database. Defined statistics are:
- Number of named graphs.
- Total number of triples in the database. This is the number of asserted
triples minus the number of retracted ones. The number of visible
triples in a particular context may be different due to visibility rules
defined by the logical update view and transaction isolation.
- Number of resources that appear as subject or object in a triple. See rdf_resource/1.
- Number of current predicates. See rdf_current_predicate/1.
- Number of current literals. See rdf_current_literal/1.
- gc(GCCount, ReclaimedTriples,
- Information about the garbage collector.
- Number of nodes expanded by rdf_reachable/3
- lookup(rdf(S,P,O,G), Count)
- Number of queries that have been performed for this particular
instantiation pattern. Each of S,P,O,G
is either + or -. Fails in case the number of performed queries is zero.
- hash_quality(rdf(S,P,O,G), Buckets, Quality,
- Statistics on the index for this pattern. Indices are created lazily on
the first relevant query.
- triples_by_graph(Graph, Count)
- This statistics is produced for each named graph. See
triples for the interpretation of this value.
- True if Label matches Pattern according to How. How
is one of
like. For backward compatibility,
a synonym for
- True if Lang matches Pattern. This implements XML
language matching conform RFC 4647. Both Lang and Pattern
are dash-separated strings of identifiers or (for Pattern)
the wildcard *. Identifiers are matched case-insensitive and a * matches
any number of identifiers. A short pattern is the same as *.
- True if two RFC language specifiers denote the same language
- See also
- Remove all triples from the RDF database and reset all its statistics.
- This predicate checks for active queries, but this check is not properly
synchronized and therefore the use of this predicate is unsafe in
multi-threaded contexts. It is mainly used to run functionality tests
that need to start with an empty database.
- True when Version is the numerical version-id of this
library. The version is computed as
Major*10000 + Minor*100 + Patch.