• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

3.3.3 Modifying the RDF database
All Application Manual Name SummaryHelp

  • 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.
ClioPatria (version V3.1.1-51-ga0b30a5)