forked from dotnetrdf/dotnetrdf
-
Notifications
You must be signed in to change notification settings - Fork 0
HowTo Load RDF From The Web
Kal Ahmed edited this page Sep 25, 2016
·
7 revisions
Home > How To > Load RDF from the Web
RDF can be loading from web via a URI using the LoadFromUri() extension method. This method exists for both IGraph and ITripleStore e.g.
IGraph g = new Graph();
g.LoadFromUri(new Uri("http://example.org/file.rdf"));Occasionally some server may misinterpret the Accept header that dotNetRDF normally uses and return a HTML page instead of a RDF graph. You can force the loader to attempt to retrieve RDF in a specific format by specifying the parser you want to use e.g.
IGraph g = new Graph();
g.LoadFromUri(new Uri("http://example.org/file.rdf"), 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