NEW
An XML-based syntax for serializing RDF graphs.
DESCRIPTION
RDF/XML is the original W3C-recommended XML syntax for encoding RDF graphs. It expresses RDF triples using XML elements and attributes. While machine-readable and widely supported, RDF/XML is less human-friendly compared to Turtle or JSON-LD. It remains relevant for XML-centric pipelines and legacy integrations. Modern projects often prefer concise syntaxes and JSON-based interchange for developer ergonomics.
ALTERNATIVE DEFINITIONS
W3C RDF/XML Syntax Specification (Revised)
This document defines an XML syntax for RDF called RDF/XML.
Formal specification scope defining RDF/XML as the XML syntax.
W3C RDF 1.1 Primer
RDF/XML is an XML syntax for writing RDF, but other syntaxes, such as Turtle, are generally easier for humans to read.
Contrasts readability with alternative syntaxes.
Apache Jena
RDF/XML is a widely supported XML syntax for RDF; Jena can read and write RDF/XML.
Highlights tooling support for reading/writing RDF/XML.
RELATED TERMS
RDF XML N-Triples Apache Jena RDF4J RDF Schema OWL SPARQL
COMPETING TERMS
KNOWLEDGE AREAS
Semantic & Knowledge Modeling Data Integration & Interoperability Document & Content Management
TARGET AUDIENCE
Data Engineer Software Developer Data Modeler Data Architect Application Administrator
EXTERNAL SOURCES
- Wikipedia - RDF/XML
- W3C - Authoritative RDF/XML syntax specification
- Apache Jena - RDF/XML I/O documentation
- Eclipse RDF4J - RDF/XML parsing/writing with Rio
TOP QUESTIONS
When should I use RDF/XML?
Use RDF/XML for XML-centric ecosystems or legacy integrations; otherwise, prefer Turtle or JSON-LD for readability.
Category: Guidance
What are drawbacks of RDF/XML?
It’s verbose and harder to read, making manual authoring and debugging more difficult than Turtle or JSON-LD.
Category: Mistakes
Is RDF/XML still supported?
Yes, major libraries and stores still read and write RDF/XML for compatibility.
Category: Status
How do I convert RDF/XML to Turtle?
Tools like Jena and RDF4J can parse RDF/XML and serialize the same model to Turtle.
Category: Practice
Does RDF/XML impact RDF semantics?
No, it’s a serialization; the underlying graph semantics remain unchanged.
Category: Clarification
Is RDF/XML suitable for streaming?
Streaming is possible but less convenient than line-oriented formats like N-Triples.
Category: Opinion
What testing considerations exist for RDF/XML?
Validate against schemas, check namespace bindings, and ensure consistent round-trip conversions.
Category: Testing
How do prefixes work in RDF/XML?
XML namespaces provide prefix bindings for compact element names representing RDF terms.
Category: Syntax
What is a hot topic around RDF/XML?
Migration to easier syntaxes like Turtle and JSON-LD while maintaining legacy compatibility.
Category: Topic