Replaces one of the three (four) fields on the matching triples
depending on Action:
- subject(Resource)
- Changes the first field of the triple.
- predicate(Resource)
- Changes the second field of the triple.
- object(Object)
- Changes the last field of the triple to the given resource or
literal(Value)
.
- graph(Graph)
- Moves the triple from its current named graph to Graph.
This only works with rdf_update/5 and throws an error when
used with rdf_update/4.
The argument matching Action must be ground. If this argument is
equivalent to the current value, no action is performed. Otherwise,
the requested action is performed on all matching triples. For
example, all resources typed rdfs:Class
can be changed to
owl:Class
using
?- rdf_update(_, rdf:type, rdfs:'Class',
object(owl:'Class')).
- Errors
- - instantiation_error if Action or the matching argument is
not ground.
- -
domain_error(rdf_update_action, Action)
if Action is not
one of the above terms.