3.3 library(semweb/rdf_db): 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
            • Query the RDF database
            • Enumerating objects
            • Modifying the RDF database
            • Update view, transactions and snapshots
            • Type checking predicates
              • rdf_is_resource/1
              • rdf_is_bnode/1
              • rdf_is_literal/1
            • Loading and saving to file
            • Graph manipulation
            • Literal matching and indexing
            • Predicate properties
            • Prefix Handling
            • Miscellaneous predicates
            • Memory management considerations

3.3.5 Type checking predicates

[semidet]rdf_is_resource(@Term)
True if Term is an RDF resource. Note that this is merely a type-test; it does not mean this resource is involved in any triple. Blank nodes are also considered resources.
See also
rdf_is_bnode/1
rdf_is_bnode(+Id)
Tests if a resource is a blank node (i.e. is an anonymous resource). A blank node is represented as an atom that starts with _:. For backward compatibility reason, __ is also considered to be a blank node.
See also
rdf_bnode/1.
[semidet]rdf_is_literal(@Term)
True if Term is an RDF literal object. Currently only checks for groundness and the literal functor.