• 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

/home/swipl/lib/swipl/library/semweb/rdf_persistency.pl
AllApplicationManualNameSummaryHelp

  • library
    • semweb
      • rdf_db.pl -- Core RDF database
      • rdf_prefixes.pl -- RDF prefixes management
      • rdfs.pl -- RDFS handling
      • rdf11.pl -- RDF 1.1 API
      • rdf_persistency.pl -- RDF persistency plugin
        • property_of_graph/2
        • rdf_attach_db/2
        • rdf_persistency_property/1
        • rdf_detach_db/0
        • rdf_current_db/1
        • rdf_flush_journals/1
        • rdf_persistency/2
        • rdf_journal_file/2
        • rdf_snapshot_file/2
        • rdf_db_to_file/2
      • rdf_litindex.pl -- Search literals
      • rdf_ntriples.pl -- Process files in the RDF N-Triples format
      • sparql_client.pl -- SPARQL client library
      • rdf_http_plugin.pl -- RDF HTTP Plugin
      • rdf_turtle_write.pl -- Turtle - Terse RDF Triple Language writer
      • turtle.pl -- Turtle: Terse RDF Triple Language
      • rdf_library.pl -- RDF Library Manager
      • rdf_turtle.pl -- Turtle reader
      • rdf_cache.pl -- Cache RDF triples
      • rdf_sandbox.pl -- Declare RDF API sandbox-safe
      • rdf_zlib_plugin.pl -- RDF compressed-data plugin
 rdf_attach_db(+Directory, +Options) is det
Start persistent operations using Directory as place to store files. There are several cases:
  • Empty DB, existing directory Load the DB from the existing directory
  • Full DB, empty directory Create snapshots for all sources in directory

Options:

access(+AccessMode)
One of auto (default), read_write or read_only. Read-only access implies that the RDF store is not locked. It is read at startup and all modifications to the data are temporary. The default auto mode is read_write if the directory is writeable and the lock can be acquired. Otherwise it reverts to read_only.
concurrency(+Jobs)
Number of threads to use for loading the initial database. If not provided it is the number of CPUs as optained from the flag cpu_count.
max_open_journals(+Count)
Maximum number of journals kept open. If not provided, the default is 10. See limit_fd_pool/0.
directory_levels(+Count)
Number of levels of intermediate directories for storing the graph files. Default is 2.
silent(+BoolOrBrief)
If true (default false), do not print informational messages. Finally, if brief it will show minimal feedback.
log_nested_transactions(+Boolean)
If true, nested log transactions are added to the journal information. By default (false), no log-term is added for nested transactions.\\
Errors
- existence_error(source_sink, Directory)
- permission_error(write, directory, Directory)
ClioPatria (version V3.1.1-42-gd6a756b-DIRTY)