• 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/rdfql/rdfql_util.pl
All Application Manual Name SummaryHelp

  • ClioPatria
    • rdfql
      • serql.pl
      • rdfql_util.pl
        • select_results/6
        • select_results/9
        • sort_key/2
        • entailment_module/2
      • sparql_runtime.pl -- SPARQL runtime support
      • rdfql_runtime.pl -- SPARQL/SeRQL runtime support predicates
      • serql_runtime.pl
      • sparql.pl
      • sparql_grammar.pl -- SPARQL Parser
      • jena_properties.pl
      • text_properties.pl
      • rdf_io.pl
      • rdf_html.pl -- Write query-results as HTML table.
      • sparql_xml_result.pl
      • sparql_json_result.pl -- Write SPARQL results as JSON
      • sparql_csv_result.pl -- Write SPARQL results as CSV
      • rdf_turtle_io.pl -- Write query-result graphs as Turtle
      • serql_xml_result.pl
 sort_key(+Result, -Key) is det
Determine the sort-key from a result according to the SPARQL standard:
  1. undefined/null
  2. blank nodes
  3. IRIs
  4. RDF Literals a. Numbers are mapped to their value space b. Other literals are mapped to their plain literal. Note that this works fine for some types:
    • xsd:date and variants
    • xsd:boolean
bug
- This is not good enough. Literals must be compared in their value-space. This requires some study.
- Result is a SPARQL expression.
ClioPatria (version V3.1.1-51-ga0b30a5)