.RDF

RDF File

Resource Description Framework Document (RDF/XML)
Ask a question
QUICK ANSWER

An RDF file holds W3C Resource Description Framework data - the foundation of the semantic web - serialized as RDF/XML text. Open it in any text editor or browser to read the markup; use Protege for ontologies. It is plain XML with no executable code.

Developer: W3C (RDF standard) Category: Web Files Open standard MIME: application/rdf+xml
OPENS ON Windows macOS Linux

On this page

19k+ extensions indexed
Last reviewed Aug 21, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the RDF file format?

An .rdf file is a document used for defining data related to resources on the web. .rdf files contain metadata such as page descriptions, keywords, or update logs for online resources.

The .rdf format specification was created by the World Wide Web Consortium (W3C), with RDF 1.0 ratified as a Recommendation in 1999 and RDF 1.1 following in 2014. RDF document files are written in the Resource Description Framework language and are used to share information with applications in order for them to process it in a machine-readable way - a foundation of the Semantic Web and Linked Data.

An .rdf document uses XML syntax to store data. XML is used due to its simplicity regarding data representation. The model describes data using three types of expression:

  • Subject - defines the resource (an IRI or blank node)
  • Predicate - defines traits or aspects of that resource
  • Object - stores the value of the predicate (an IRI or a literal)

Each such statement is called a *triple*; a set of triples forms an RDF graph. An .rdf file typically opens with <?xml version="1.0"?> and an <rdf:RDF xmlns:rdf="..."> root element.

Besides representing information about web resources, .rdf files have been used by Mozilla Firefox for purposes such as storing extension manifests (install.rdf) and toolbar configuration - though modern Firefox replaced this with the WebExtensions format. The standard MIME type is application/rdf+xml. The same RDF graph can also be serialized as a Turtle (.ttl) or JSON-LD file, while OWL ontologies typically reuse RDF/XML as their primary serialization.

Security & safety

RISK: LOW

An .rdf file is text/XML data and contains no executable code, so opening one to read it is safe. The only general XML caution applies: very large or maliciously crafted XML can trigger 'XML bomb' (billion-laughs) or external-entity (XXE) issues in a poorly configured parser, so process untrusted RDF with a hardened, entity-expansion-limited parser.

Format details

in a nutshell
FULL NAMEResource Description Framework Document (RDF/XML)
DEVELOPERW3C (RDF standard)since RDF 1.0 W3C Recommendation 1999 (RDF 1.1 in 2014)
CATEGORYWeb Files
MIME TYPEapplication/rdf+xml
TYPEText/XML: an RDF graph serialized as RDF/XML
STANDARDOpen · royalty-free
This extension is also used by…
  • RSS 1.0 (RDF Site Summary) news feed - RSS 1.0 is an RDF/XML feed that uses .rdf and is subscribed to in a feed reader; it's distinct from the common RSS 2.0 (.rss/.xml) and is rare today.
  • Legacy Mozilla configuration file - Old Mozilla/Firefox/Thunderbird used .rdf internally for bookmarks, toolbar state and extension manifests; Mozilla removed RDF years ago, so modern Firefox no longer uses it.

Programs that open RDF files

Windows4 apps
Notepad / VS Code Open-source Open the .rdf as text/XML to read the triples and namespaces directly. Quickest way to see what an .rdf actually contains.
Protege Open-source For OWL/RDF ontologies: File > Open the .rdf to browse classes, properties and individuals in a proper ontology editor.
Altova XMLSpy Paid Open the .rdf as XML with schema-aware editing and validation. (Keep from db; commercial.)
Web browser (Chrome, Edge, Firefox) Free Drag the .rdf into a browser to view the raw XML tree (browsers don't render RDF as data, just show the markup).
macOS1 app
Protege / any text editor Open-source Protege for ontologies; TextEdit/VS Code to read the RDF/XML.
Linux1 app
Protege / rapper (Raptor RDF) / text editor Open-source Protege to browse ontologies; 'rapper -i rdfxml -o turtle file.rdf' to parse/convert; gedit to read.

Technical details

deep spec
MIME typeapplication/rdf+xml
Character encodingUTF-8 declared in the XML header; UTF-16 also permitted by the XML specification
Data modelSubject-Predicate-Object triples forming a directed RDF graph
Root XML element<rdf:RDF> with xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
Resource identificationIRIs (Internationalized Resource Identifiers) or anonymous blank nodes
Literal value typesTyped literals with XSD datatypes, or language-tagged strings via the xml:lang attribute
Alternative serializationsTurtle (.ttl), N-Triples (.nt), JSON-LD (.jsonld), Notation3 (.n3) - same graph data, different syntax
Standard query languageSPARQL (W3C Recommendation); used to query RDF graphs loaded from .rdf files or held in a triple store
Blank node scopeBlank node identifiers are local to a single document and are not globally dereferenceable
Common namespace prefixesrdf:, rdfs:, owl:, xsd:, dc: (Dublin Core), foaf: - each declared as an xmlns attribute
Typical structural elementsrdf:Description or typed node elements (e.g. foaf:Person) nested inside the rdf:RDF root
OWL relationshipOWL ontology files (.owl) use RDF/XML as their default on-disk serialization
Triple store loadingCompatible with SPARQL-capable triple stores such as Apache Jena Fuseki, Virtuoso, and GraphDB
Typical use casesSemantic Web metadata, Linked Data publishing, library catalogues, FOAF social profiles, ontology exchange
Parser librariesApache Jena (Java), RDFLib (Python), Redland/Raptor (C), EasyRDF (PHP)
ReleasedRDF 1.0 W3C Recommendation 1999 (RDF 1.1 in 2014)
Open standardYes · royalty-free
Specificationwww.w3.org

RDF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with RDF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about RDF files.

Frequently asked questions

What is an RDF file?
It's data in the W3C Resource Description Framework - the model behind the semantic web/linked data - usually written as RDF/XML text. It stores information as subject-predicate-object 'triples' (ontologies, vocabularies, metadata, knowledge graphs). It's plain XML you can open in a text editor.
How do I open an RDF file?
Because it's XML text, open it in any text editor (Notepad++, VS Code) or drag it into a browser to read the markup. For an ontology, use Protege; for XML editing/validation, Altova XMLSpy. There's no 'document' to render - it's data.
Is my RDF file an RSS feed?
It might be a different file type that shares the extension: RSS 1.0 (RDF Site Summary) is an RDF/XML news feed saved as .rdf and subscribed to in a feed reader. But most RSS feeds today are RSS 2.0 (.rss/.xml) or Atom, and most .rdf files are semantic-web data, not feeds.
Does Firefox still use .rdf files?
No. Old Mozilla/Firefox versions used .rdf as an internal config file (bookmarks, extension state), but Mozilla removed RDF years ago, so a modern Firefox profile no longer relies on it. That legacy Mozilla config is a separate, now-obsolete use of the extension.
How do I convert RDF/XML to Turtle or JSON-LD?
Use an RDF tool: Apache Jena's 'riot', the Raptor 'rapper' command ('rapper -i rdfxml -o turtle file.rdf'), Protege's Save As, or an online RDF converter. All carry the same triples in a friendlier syntax.
What's the difference between RDF and XML?
XML is a generic markup syntax; RDF is a data MODEL (a graph of triples) that is often serialized using XML (RDF/XML). So an RDF/XML file is valid XML, but its meaning is the RDF graph, not just the tags.

References

1W3C - RDF 1.1 Concepts and Abstract Syntaxwww.w3.org
2W3C - RDF 1.1 XML Syntaxwww.w3.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BCBitComet Incomplete Download File
5.PARTPartial Download File
6.BINCD/DVD Disc Image (BIN/CUE)
7.EXEWindows Executable (Portable Executable)
8.AVIFAV1 Image File Format (AVIF)
9.RPMSGRestricted Permission Message
10.NOMEDIAAndroid No-Media Marker File

Related extensions

.CRDOWNLOADChrome Partial Download File
.JNLPJava Network Launch Protocol file
.WEBARCHIVESafari Web Archive
.PARTPartial Download File
.DOWNLOADPartial / Incomplete Download File
.ASPXActive Server Page Extended (ASP.NET Web Form)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z