Questions tagged [dotnetrdf]

dotNetRDF is a free and open source library for working with RDF and SPARQL in .Net 3.5 and higher

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

How to use named graphs in a SPARQL Update against an in memory TripleStore with dotNetRDF

I've created a TripleStore and loaded several named graphs as part of an ETL job (the number of graphs can vary), but when I try to make DELETE/INSERT update operations and serialize the resulting ...
0 votes
0 answers
14 views

The remote server returned an error: (406) Not Acceptable. when sending arabic characters in sparql query to remote endpoint

I am using dotnetrdf with asp.net ,and trying to get altLabels for authors names via sparql my query is like this: SparqlRemoteEndpoint endpoint = new SparqlRemoteEndpoint(new Uri("http://dbpedia....
0 votes
1 answer
27 views

dotNetRDF owl file encoding for chinese

I have a owl file generated by Protege. Some classes' name and property name contain Chinese words like "苹果". It's ok when I just open the owl file. However, when I usw OntologyGraph to load ...
0 votes
1 answer
95 views

Get the value of DataProperty from owl by dotNetRDF

I have a .owl file generated by Protege. (rdf/xml) I have some individuals and I want to get the value of the DataProperty "hasAge". <owl:NamedIndividual rdf:about="&untitled-...
1 vote
2 answers
191 views

How can I get strongly typed data/poco from a triple store/RDF graph database using C#?

Currently I am using an RDF graph database (Ontotext GraphDB), which I query using a SPARQL query via dotnetRDF and C#. Via the SparqlResultSet I can access the data and create a typed object/poco, ...
  • 753
1 vote
0 answers
46 views

Connecting to stardog with TrinityRDF, exception thrown if address other than localhost used

I get the following error on the line: store.InitializeFromConfiguration(Path.Combine(Environment.CurrentDirectory, "ontologies.config")); A HTTP error occurred while beginning a ...
  • 66
1 vote
1 answer
123 views

Validate if graph is following ontology file

Imagine I have two RDF (turtle) files, one that contains my custom ontology (a.ttl) and one that contains values according to the ontology (b.ttl). Is it possible to check if b.ttl is respecting all ...
0 votes
1 answer
94 views

dotNetRdf Method UpdateGraph not successful with Virtuoso server

I have a Virtuoso-Server on a linux machine (I "inherited" it, so I did not set it up myself). I also inherited the OntoWiki frontend connected to the server to manipulate the data. As this ...
  • 4,436
1 vote
1 answer
358 views

Use STRSTARTS in fluent filter

I have troubles figuring out how to represent the following query in dotnetrdf using fluent query. The SPARQL Query: PREFIX a: <http://www.example.com/ex1#> PREFIX rdf: < http://www.w3.org/...
1 vote
1 answer
254 views

Owl class rdf in dotnetrdf

What is the best way to generate below using dotnetrdf? Assuming I have defined al the namespaces, I am trying to output the following: <owl:Class rdf:about = "http://my.taxonomies.com/myModel/...
  • 13
0 votes
0 answers
233 views

dotNetRDF can not load System.EnterpriseServices

I am trying to save a graph to a OpenLink Virtuoso database using .net and dotNetRdf. Connection is successfully created, but when I try to save graph, I get this message: An unhandled exception of ...
1 vote
1 answer
49 views

Creating a base-less graph

Per the description of BaseGraph.CreateUriNode: Generally we expect to be passed an absolute URI, while relative URIs are permitted the behaviour is less well defined. If there is a Base URI defined ...
  • 11.6k
2 votes
1 answer
117 views

Getting exception while creating Lucene indexer using DotNetRDf.Query.FullText

Hi I am trying to use DotNetRDf.Query.FullText in .Net core 3.1 to create Lucene indexer but getting below run time exception. Can you please help to resolve this issue? System.TypeLoadException ...
  • 23
2 votes
1 answer
163 views

Context prefixes not loading in JsonLdParser.Load

I'm trying to load some basic json-ld content as a string, but I'm not able to see the namespace prefixes that should be included. Given the following json-ld: { "@context": { "...
  • 23
2 votes
1 answer
157 views

DotNetRDF: Graph or CompressingTurtleWriter does not release memory

I'm using dotnetRDF framework and C# to export graphs in turtle format for patients, creating one turtle file per patient. After about 400 patients the program stalls due to memory issues. Each turtle ...
  • 47
2 votes
1 answer
94 views

DotNetRDF: how to force CompressingTurtleWriter to use QNames instead of full IRI

I'm using DotNetRDF Framework (v2.6) to export database content into turtle files. I add all the QNames with the following command to the graph: exportGraph.NamespaceMap.AddNamespace("medi", ...
  • 47
0 votes
0 answers
41 views

MeSH dataset not loading in dotNetRDF

It's being more than 12hrs, I am loading mesh.nt (Medical Subjects Heading) RDF dataset using dotNetRDF, but no success yet. In Java (Apache Jena) it took 249sec. Here I am enclosing my code. ...
0 votes
1 answer
125 views

VDS.RDF.Query.RdfQueryTimeoutException on dotnetRDF

I am running the SPARQL query in dotNetRDF C#, and getting this error: VDS.RDF.Query.RdfQueryTimeoutException HResult=0x80131500 Message=Query Execution Time exceeded the Timeout of 180000ms; query ...
1 vote
1 answer
184 views

dotNetRDF not parsing LinkedMovie.nt (VDS.RDF.Parsing.RdfParseException)

I have tested linkedmdb-18-05-2009-dump.nt on Java Apache Jena, but on dotNetRDF throwing an exception as VDS.RDF.Parsing.RdfParseException HResult=0x80131500 Message=Invalid URI encountered, see ...
1 vote
1 answer
553 views

How to upload rdf-file to GraphDB over API

I have an RDF-file stored on my server. The file or at least the file-content should be uploaded to a remote GrapbDB over API. On the documentation there are two ways to do this. The first one is ...
1 vote
1 answer
159 views

How to use FILTER IN in dotnetrdf

I want to use the "FILTER IN" Filter in dotnetRdf, but I don`t get it running. My Query is below, but I do not have an idea what to enter in the the "In" Method. I want to have ...
1 vote
0 answers
62 views

Does dotNetRDF's RDFS Reasoner support multiple Superclass Type Inference?

i observed that when using the StaticRDFSReasoner or just the RDFSReasoner and if i have a Schema like this(TURTLE Notation): ex:A a rdfs:Class; rdfs:subClassOf ex:B, ex:C . And data ...
  • 11
1 vote
1 answer
1k views

How to parse JSON-LD feed using dotNetRDF in C#

I'm trying to consume a json-ld formatted endpoint in a dotnet app. I've not come across this format before but most of the examples are for JavaScript. I've tried a couple of libraries and simply ...
1 vote
0 answers
87 views

DotNetRDF writing to RDF Exception errors

How do I debug/validate my SKOS / RDF? What tools are available on Windows 10? I've been building SKOS /RDF using DotNetRDF The Problem is: When I try to output to a file I can save to .ttl but ...
1 vote
2 answers
449 views

How to write code in C #, to add new data to the database

Adding triplets to GraphDB SparqlRemoteEndpoint endpoint = new SparqlRemoteEndpoint(new Uri("http://localhost:7200/sparql"), "http://localhost:7200/"); SparqlResultSet results = endpoint....
1 vote
1 answer
107 views

How to make a call with dotNetRDF to an RDF datasource with a bearer token?

I am loading an RDF document, using the dotNetRDF library by doing the following: var g = new Graph(); UriLoader.Load(g, new Uri("https://myuri")); If I load from a protected datasource, requiring ...
1 vote
1 answer
38 views

Does dotNetRDF support Maths?

I saw the "math" built-in mentioned in one of the unit test resources (path2.n3) and tried it out but it doesn't seem to work: @prefix math: <http://www.w3.org/2000/10/swap/math#>. @prefix : &...
  • 45
0 votes
1 answer
134 views

Are dotNetRDF Reasoners meant to be used this way?

I'm investigating if it's possible to define a game's base ontology and then on top of that define arbitrary magic items without requiring updates to the code or sparql queries that consume it. For ...
  • 45
1 vote
1 answer
282 views

Is there any class in dotNetRdf to upload the ontology in the remote server?

I am developing a .Net API and connecting it with RDF Triple Store, with the help of dotNetRdf library. I am successfully able to load the data and query rdf data from the remote serve. Is there any ...
0 votes
1 answer
47 views

VDS.RDF.GraphHandler for skipping Triples

I want to parse only some data out of a ~100 MB rdf cell line ontology. So far I am interested in 169.796 out of 1.387.097 tripples (1.217.301 tripples being skipped). I need ~24 seconds using the ...
  • 533
0 votes
1 answer
120 views

VDS.RDF.Parsing.RdfXmlParser Load(IRdfHandler handler, XmlDocument document) missing

I am looking for an overload with above mentioned signature. I need to load from an XmlDocument because loading from the owl file directly or via a Stream results in an Error: "The input document ...
  • 533
1 vote
1 answer
209 views

dotNetRdf issue with Unicode escape sequences / Jena Fuseki inability to load apostrophe in URI

I am developing an web application and I need to support storing RDF data onto my Jena Fuseki server from several data sources (DB dumps / URIs). I have encountered a problem with dotNetRdf. I am ...
-1 votes
1 answer
97 views

How can I use HasPropertyValueSelector in my project?

I am new to dotNetRDF and I have a problem maybe namespaces or framework. Although I'm adding namespaces to the my project, the following code doesn't work. System given an error that namespace not ...
0 votes
0 answers
354 views

SPARQL query using dotNetRDF returns the correct amount of results but with empty values, why?

I have tested my SPARQL query on the pizza ontology in protege and the query works fine. Problem is when I attempt to run the same query on the same ontology file using dotNetRDF. The query returns ...
  • 111
1 vote
0 answers
240 views

Can SPARQL be used to query the following from an ontology?

Can SPARQL be used to query an empty ontology (with no individuals), to retrieve information about the restrictions (axioms or object properties) put on a class? Here's a snippet of my ontology in ...
  • 111
0 votes
0 answers
380 views

Example or tutorial of creating RDF/OWL Semantic Metadata model from C# classes

I need to create RDF/OWL Semantic Metadata model from C# classes. In other words, there are a couple of C# classes, one of them refers to another through a property and I need to create RDF/OWL ...
  • 11
0 votes
0 answers
95 views

How can I connect my databse by using LINQtoSPARQL for writing linq based services?

The following is the code of TestDataProvider class in LINQtoSPARQL (githublinkk). Here, data is taken from string or file. namespace LINQtoSPARQLSpace.Tests { public static class TestDataProvider { ...
0 votes
2 answers
318 views

How should I pass the credentials to SparqlRemoteEndpoint class object?

I am using GraphDB database. I want SparqlRemoteEndpoint class object (link) to connect with my database. But, while I am putting my credentials using setCredentials(username, password) it says 401 ...
3 votes
2 answers
661 views

Sending SPARQL queries from C# using stardog: "cannot execute update query on read endpoint"

as the title says i'm trying to create triples using SPARQL queries from visualstudio. Using the same SPARQL queries inside stardog studio works, but when i try to send them from visualstudio using ...
1 vote
0 answers
125 views

How to extract Wikipedia list data using DBpedia + dotnetRDF?

I want o get all the list data from a page like https://en.wikipedia.org/wiki/List_of_ongoing_armed_conflicts using DBpedia + dotnetRDF. The wikipedia list page shows a table with all the conflicts ...
  • 21
0 votes
1 answer
224 views

Using dotnetRDF library to query Large RDF file by SPARQL

i want to query an Ontology which is defined in an RDF file using SPARQL and dotnetRDF library. The problem is that the file is large, so it's not very practical to load the entire file in memory. ...
  • 496
0 votes
1 answer
1k views

Parsing RDF - dotnetrdf c#

This is my first time ever looking at RDF, and after trying, I've no idea how to parse it. I'm looking at some RDF (in Turtle format) used in the AFF4 file system, here's a portion of it: <aff4://...
  • 3,586
1 vote
0 answers
274 views

DotNetRDF QueryBuilder Filter using LangMatches

After googling for about an hour now, I am not be able to find anything that help me to put a filter using dotNetRDF query builder to construct a SPARQL query. Following is my code so far: var ...
0 votes
1 answer
494 views

How to create RDFS based on RDF/XML file?

For my project, I need to get the RDFS from CIM RDF/XML (IEC 61970). .NET Framework does not have standard tools for working with RDF. Please help me solve my problem.
  • 11
1 vote
1 answer
237 views

I was unable to find additional information about this exception

My objective: build an application for Windows10-64bit that uses Unity and dotNetRDF together to manage a Fuseki triple store. Unity 2017.3 64bits Scripting Runtime Version: Experimental (.NET 4.6 ...
0 votes
1 answer
288 views

Import large RDF to Graph Store using dotNetRDF

I have a large RDF file (in the gigabytes) that I'd like imported into a remote graph database. The database exposes a Graph Store Protocol endpoint over the RDF4J API. Of the many ingest routes the ...
  • 2,251
1 vote
1 answer
153 views

Triple with ISO8601 date breaks RDFJSON parser in dotnetrdf

I am trying to parse an RDF/JSON graph with help of dotnetrdf and it fails when I have a date as literal, below is some sample code with the problematic triple that causes the problem. using VDS.RDF;...
0 votes
1 answer
150 views

load rdf/json from URL using DotNetRDF

I'm new to the World of triplets :-) I'm trying to use DotNetRDF to load the SOLR searchresult into a Graph using DotNetRDF. The URL I'm getting data from is: https://nvv.entryscape.net/store/search?...
4 votes
0 answers
90 views

How would you process sparql xml directly when QueryWithResultSet doesn't work

Over the past year or so, I've been using a bunch of custom code to handle interaction with a number of SPARQL endpoints. I'd rather not have to maintain it, so I've been learning how to use ...
1 vote
0 answers
94 views

How to read variable from IGraph

Is there a way of reading the "category" value from the IGraph I created using DotNetRDF? (see the imported RDF file below) Here is the code (as image): Here is the code (as text instead of image): ...