3.1.2 Enumerating and testing objects
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog Semantic Web Library 3.0
        • Two RDF APIs
          • library(semweb/rdf11): The RDF database
            • Enumerating and testing objects
              • rdf_subject/1
              • rdf_predicate/1
              • rdf_object/1
              • rdf_node/1
              • rdf_graph/1
              • rdf_literal/1
              • rdf_bnode/1
              • rdf_iri/1
              • rdf_name/1
              • rdf_term/1
              • rdf_is_iri/1
              • rdf_is_bnode/1
              • rdf_is_literal/1
              • rdf_is_name/1
              • rdf_is_object/1
              • rdf_is_predicate/1
              • rdf_is_subject/1
              • rdf_is_term/1
Availability::- use_module(library(semweb/rdf11)).
Source[semidet]rdf_is_subject(@Term)
True if Term can appear in the subject position of a triple.

Only blank nodes and IRIs can appear in the subject position.

Success of this goal does not imply that the subject term is present in the database (see rdf_subject/1) for that).

Since blank nodes are represented by atoms that start with `_:` and an IRIs are atoms as well, this is equivalent to atom(Term).