• 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_http_plugin.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
      • 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_open_hook/8
        • ssl_verify/5
        • rdf_content_type/3
      • 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_content_type(?MediaType:atom, ?QualityValue:between(0.0,1.0), ?Format:rdf_format) is nondet[multifile, library(semweb/rdf_http_plugin)]
Quality values are intended to be used in accordance with RFC 2616. Quality values are determined based on the following criteria:
LabelCriterionValue
ASupported RDF parser0.43
BRDF-specific content type0.33
COfficial content type0.23

For example, text/turtle has quality value 0.99 because it is an official content type that is RDF-specific and that has a parser in Semweb.

This intentionally allows the user to add another content type with a higher Q-value (i.e., >0.99).

Deduce the RDF encoding from the mime-type. This predicate is defined as multifile such that the user can associate additional content types to RDF formats.

See also
- Discussion http://richard.cyganiak.de/blog/2008/03/what-is-your-rdf-browsers-accept-header/
- N-Quadruples http://www.w3.org/ns/formats/N-Quads
- N-Triples http://www.w3.org/ns/formats/N-Triples
- N3 http://www.w3.org/ns/formats/N3
- RDFa http://www.w3.org/ns/formats/RDFa
- TriG http://www.w3.org/ns/formats/TriG
- Turtle http://www.w3.org/ns/formats/Turtle
- XML/RDF http://www.w3.org/ns/formats/RDF_XML
bug
- The turtle parser only parses a subset of n3. (The N3 format is treated as if it were Turtle.)
ClioPatria (version V3.1.1-42-gd6a756b-DIRTY)