Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ocaml-rdf ocaml-rdf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Zoggy
  • ocaml-rdfocaml-rdf
  • Merge requests
  • !1

Only output one <rdf:Description> for each node

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Zoggy requested to merge flh:xml_output_single_rdfdescription into master Mar 16, 2014
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: flh

The following RDF/XML part:

  <rdf:Description rdf:about="http://zoggy.github.io/ocaml-rdf/">
    <dc:title>OCaml-RDF</dc:title>
  </rdf:Description>
  <rdf:Description rdf:about="http://zoggy.github.io/ocaml-rdf/">
    <dc:description>
      OCaml-RDF is an OCaml library to manipulate RDF
      graphs and execute Sparql queries.
    </dc:description>
  </rdf:Description>

describes exactly the same graph as:

  <rdf:Description rdf:about="http://zoggy.github.io/ocaml-rdf/">
    <dc:title>OCaml-RDF</dc:title>
    <dc:description>
      OCaml-RDF is an OCaml library to manipulate RDF
      graphs and execute Sparql queries.
    </dc:description>
  </rdf:Description>

The latter is less verbose, more idiomatic and more human-readable. This patch changes Rdf_xml.output so that only one <rdf:Description> is created for each subject node in the graph.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: flh:xml_output_single_rdfdescription