3.3.3 Modifying the RDF database
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog Semantic Web Library 3.0
        • Two RDF APIs
          • library(semweb/rdf_db): The RDF database
            • Modifying the RDF database
              • rdf_assert/3
              • rdf_assert/4
              • rdf_retractall/3
              • rdf_retractall/4
              • rdf_update/4
              • rdf_update/5
Availability::- use_module(library(semweb/rdf_db)).
Source[det]rdf_update(+Subject, +Predicate, +Object, ++Action)
[det]rdf_update(+Subject, +Predicate, +Object, +Graph, ++Action)
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.