forked from dotnetrdf/dotnetrdf
-
Notifications
You must be signed in to change notification settings - Fork 0
HowTo Load RDF From A File
Kal Ahmed edited this page Sep 25, 2016
·
6 revisions
Home > How To > Load RDF from a File
RDF can be loading from local files using the LoadFromFile() extension method. This method exists for both IGraph and ITripleStore e.g.
IGraph g = new Graph();
g.LoadFromFile("example.ttl");dotNetRDF attempts to detect the data format of the file based upon the file extension and failing that using some simple format detection heuristics on the file contents. You can force the loader to attempt to read RDF in a specific format by specifying the parser you want to use e.g.
IGraph g = new Graph();
g.LoadFromFile("example.ttl", new TurtleParser());Learn more by reading the Reading RDF documentation.
- Getting Started
- Library Overview
- Hello World
- Reading RDF
- Writing RDF
- Working With Graphs
- Typed Values and Lists
- Working with Triple Stores
- Building SPARQL
- Querying with SPARQL
- Updating with SPARQL
- Exceptions
- Equality and Comparison
- Event Model
- Utility Methods
- Extension Methods
- Using the Namespace Mapper
- Storage API
- Advanced SPARQL
- Ontology API
- Inference and Reasoning
- ASP.NET Integration
- Global Options
- Formatting API
-
Configuration API
- Graphs
- Triple Stores
- Object Factories
- Readers and Writers
- SPARQL Endpoints
- Query Processors
- Update Processors
- Protocol Processors
- SPARQL Datasets
- SPARQL Expression Factories
- SPARQL Operators
- SPARQL Optimisers
- Full Text Query
- Reasoners
- Storage Providers
- User Groups
- Permissions
- Users
- Static Options
- Proxy Servers
- Handlers API
- JSON-LD API
- Tools