forked from dotnetrdf/dotnetrdf
-
Notifications
You must be signed in to change notification settings - Fork 0
HowTo Load OWL
Kal Ahmed edited this page Sep 24, 2016
·
4 revisions
While dotNetRDF does not support OWL in terms of axioms, OWL ontologies and reasoning it can still be used to load the RDF triples representing the OWL ontology.
Load this the same way you load any other file:
//Create a graph to load into
IGraph g = new Graph();
//Load the OWL file
g.LoadFromFile("example.owl");The library assumes that any file with a .owl extension is encoded as RDF/XML, if this is not the case you will need to use the overload method and supply a specific parser e.g.
//Create a graph to load into
IGraph g = new Graph();
//Load the OWL file encoded in a non-standard syntax
g.LoadFromFile("example.owl", new TurtleParser());- 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