Markdown to RDF Converter
Transform Markdown tables into RDF (Resource Description Framework) format for semantic web applications
Markdown Input
RDF Output
Convert other formats to RDF
Related Tools
Markdown to reStructuredText
Convert Markdown tables to reStructuredText format for Sphinx and Python documentation
Markdown to Ruby
Convert Markdown tables to Ruby arrays, hashes, and Struct objects with automatic type detection
Markdown to SQL
Convert Markdown tables to SQL CREATE TABLE and INSERT statements with multi-dialect support
Markdown to Textile
Convert Markdown tables to Textile markup format for Redmine, Textpattern, and other Textile-based systems
Markdown to TOML
Convert Markdown tables to TOML configuration format with automatic type detection
Markdown to TracWiki
Convert Markdown tables to TracWiki table markup for Trac project management systems
About Markdown to RDF Converter
Convert Markdown tables to RDF (Resource Description Framework) format for semantic web applications, linked data, and knowledge graphs. RDF is a W3C standard for representing information about resources in the web.
Key Features
- Multiple RDF Formats: Support for Turtle, RDF/XML, and N-Triples serializations
- Automatic Type Detection: Detects numeric values and URIs automatically
- Custom Base URI: Configure the base URI for your RDF resources
- Semantic Web Ready: Generate W3C-compliant RDF for linked data applications
- Property Sanitization: Automatically converts headers to valid RDF property names
- File Upload: Upload .md files directly
- Instant Preview: Real-time conversion as you type
- Copy & Download: Easy export in .rdf, .ttl, or .nt formats
How to Use
- Input Markdown Table: Paste your Markdown table or upload a .md file
- Select RDF Format: Choose between Turtle, RDF/XML, or N-Triples
- Configure Base URI: Set the base URI for your RDF resources
- Review Output: The RDF output updates automatically
- Export: Copy to clipboard or download as .rdf, .ttl, or .nt file
RDF Formats
- Turtle (.ttl): Human-readable format with compact syntax and prefix support
- RDF/XML (.rdf): XML-based format, widely supported in legacy systems
- N-Triples (.nt): Simple line-based format, easy to parse and process
Example Conversion
Markdown Input:
| Name | Age | City | Department | |------|-----|------|------------| | John Doe | 28 | New York | Engineering | | Jane Smith | 34 | London | Marketing |
Turtle Output:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix ex: <http://example.org/vocab/> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . <http://example.org/data/record1> ex:name "John Doe" ; ex:age "28"^^xsd:decimal ; ex:city "New York" ; ex:department "Engineering" .
Common Use Cases
- Linked Data: Create linked data resources for the semantic web
- Knowledge Graphs: Build knowledge graphs from tabular data
- Ontology Development: Generate RDF data for ontology testing
- Data Integration: Convert data for RDF-based integration systems
- SPARQL Queries: Prepare data for SPARQL query endpoints
- Triple Stores: Import data into RDF triple stores like Apache Jena, Virtuoso
- Semantic Search: Enable semantic search capabilities
RDF Concepts
- Resources: Each row becomes an RDF resource with a unique URI
- Properties: Column headers become RDF properties in the vocabulary namespace
- Literals: Cell values become RDF literals with appropriate datatypes
- Triples: Each cell creates a subject-predicate-object triple
- Namespaces: Uses standard RDF, XSD, and custom vocabulary namespaces
Type Detection
The converter automatically detects data types:
- Numeric Values: Assigned xsd:decimal datatype
- URIs: Values starting with http:// or https:// become resource references
- Text: All other values become string literals
Turtle Format Features
- Compact and human-readable syntax
- Prefix declarations for shorter URIs
- Semicolon notation for multiple properties
- Datatype annotations with ^^
- Widely used in semantic web applications
RDF/XML Format Features
- XML-based serialization
- Compatible with XML tools and parsers
- Namespace support
- rdf:about for resource identification
- rdf:resource for URI references
- rdf:datatype for typed literals
N-Triples Format Features
- Simple line-based format
- One triple per line
- Full URIs (no prefixes)
- Easy to parse and stream
- Ideal for large datasets
Integration Examples
- Apache Jena: Import into Jena TDB or Fuseki
- Virtuoso: Load into OpenLink Virtuoso triple store
- GraphDB: Import into Ontotext GraphDB
- RDF4J: Use with Eclipse RDF4J framework
- SPARQL Endpoints: Query with SPARQL 1.1
Tips for Best Results
- Use meaningful column headers that will become property names
- Choose Turtle format for human readability
- Use RDF/XML for XML-based workflows
- Use N-Triples for large-scale data processing
- Configure a meaningful base URI for your domain
- Include URIs in cells to create linked data connections
- Validate output with RDF validators before deployment
FAQ
- How are URIs and literals distinguished? Values starting with
http://orhttps://are treated as resource URIs; everything else becomes a literal with an appropriate datatype. - What base URI should I use? Use a domain you control (for example,
https://example.com/data/) so generated record URIs integrate cleanly into your existing knowledge graph. - Can I change property names? Column headers are sanitized into property names. If you need custom vocabularies, edit the generated RDF to map them to your own namespaces.
- Is my data uploaded to a triple store? No. The tool only generates RDF text in your browser; you decide if and where to upload it (Jena, Virtuoso, GraphDB, etc.).
Privacy & Security
All conversions happen locally in your browser. Your Markdown data is never uploaded to any server, ensuring complete privacy and security.
