• 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

/srv/ClioPatria/lib/semweb/rdf_abstract.pl
All Application Manual Name SummaryHelp

  • lib
    • semweb
      • rdf_label.pl -- Generate labels for RDF objects
      • rdf_optimise.pl
      • rdf_file_type.pl -- Load RDF data from unknown file-type
      • rdf_json.pl -- JSON Representation for RDF graphs
      • rdf_describe.pl -- RDF Bounded descriptions
      • rdf_bnode.pl -- RDF graph operations on bnodes
      • rdf_schema.pl
      • rdf_graphviz.pl -- Interface to graphviz for RDF graphs
      • rdf_abstract.pl -- Abstract RDF graphs
        • merge_sameas_graph/3
        • bagify_graph/4
        • graph_resources/2
        • graph_resources/4
        • abstract_graph/3
        • minimise_graph/2
      • rdf_description.pl -- Deal with descriptive nodes in RDF models
 bagify_graph(+GraphIn, -GraphOut, -Bags, +Options) is det
If a graph contains multiple objects of the same type (class) in the same location in the graph (i.e. all links are the same), create a bag. The bag is represented by a generated resource of type rdf:Bag and the RDF for the bags is put in Bags. I.e. appending GraphOut and Bags provides a proper RDF model. Options provides additional abstraction properties. In particular:
class(+Class)
Try to bundle objects under Class rather than their rdf:type. Multiple of these options may be defined
property(+Property)
Consider predicates that are an rdfs:subPropertyOf Property the same relations.
bagify_literals(+Bool)
If true (default), also try to put literals into a bag. Works well to collapse non-preferred labels.
To be done
- Handle the property option
ClioPatria (version V3.1.1-51-ga0b30a5)