Questions tagged [n3]

N3 stands for Notation 3, an assertion and logic language which is a superset of RDF.

N3 stands for Notation 3, an assertion and logic language which is a superset of RDF.

N3 extends the RDF datamodel by adding formulae (literals which are graphs themselves), variables, logical implication, and functional predicates, as well as providing an textual syntax alternative to RDF/XML.

43 questions
0
votes
0 answers

Apache Jena: adding GraphNode (N3 formula) to Model (ARQInternalErrorException)

I'm attempting to add a Graph node to a Model (N3 formula) The output should be roughly like the below: a ; …
0
votes
1 answer

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 example, I have the following test…
Jason
  • 45
  • 1
  • 6
0
votes
0 answers

Representing a class that is a property of another class in RDF Schema using N3

I have the folowing RDF Schema @prefix rdf: . @prefix rdfs: . @prefix mynamespace: . example:Car a rdfs:Class . example:Wheel a…
regmoraes
  • 5,329
  • 3
  • 24
  • 33
0
votes
1 answer

How to read non-standard RDF format in Sesame

When loading a N3 RDF file with the below format into Sesame Repository, is it possible to tell Sesame '|' as separator? The below triple is separated by | : http://article.com/1-3|http://relationship.com/wasGeneratedBy|http://edit.com/comment1-2
jd466
  • 547
  • 1
  • 6
  • 20
0
votes
0 answers

sparql query get instances of sub classes

I have a simple n3 ontology @prefix my: . @prefix rdf: . @prefix rdfs: . my:spec a…
0
votes
1 answer

class hierarchy of Notation3

i have a simple notation3 ontology @prefix my: . @prefix rdf: . @prefix rdfs: . my:spec a rdfs:Class. …
0
votes
1 answer

Define class hierarchy in Notation 3

I am trying to develop a simple Notation3 ontology file. so far my code in the notation3 file is @prefix my: . @prefix rdf: . @prefix rdfs:…
0
votes
1 answer

How Can I configure n3 store for sparql end point?

Hey I am working on a project of Nodejs. How can I use/config n3 (https://www.npmjs.com/package/n3) store for communicate with end point rdf-storage. In my rdf storage I can completly management (CRUD) triples. Only missing part for me is…
9me
  • 1,078
  • 10
  • 36
0
votes
1 answer

Extract date/time based predicates from DBPedia

I want to extract all statements from DBPedia's dump file. Is it possible to write a sparql query to extract the list of predicates which contains the date values (like releaseDate, deathDate, birthDate,...)?
Amir Pournasserian
  • 1,600
  • 5
  • 22
  • 46
0
votes
1 answer

Which dump is fastest to import in open source virtuoso - n3/nt/xml?

I am importing some RDF dumps into Virtuoso Open Source edition (6.x). I was wondering if there is a performance difference between importing different serializations of the same data (I have NT/N3/XML available). While I'm at it : has anyone seen…
Arthur Lutz
  • 155
  • 9
0
votes
2 answers

Duplicate namespace (prefixes) in RDF resource

I've a RDF that has multiple resources in it that I'm generating from my data model. Because each resource is added (concatenated) separately, I've multiple prefixes (when in N3). It looks something like this: @prefix dc:…
0
votes
0 answers

Exception happens during parsing N3 file

I'm trying to parse N3 DBpedia dump file using SemWeb. Here is my simple code: Imports SemWeb … Dim store As New MemoryStore Dim sr As New System.IO.StreamReader(chunkFile) store.Import(New N3Reader(sr)) When I'm parsing the chunk file (which…
Amir Pournasserian
  • 1,600
  • 5
  • 22
  • 46
-1
votes
1 answer

How can I use GraphVizWriter in dotNetRDF library?

I want to know what syntax should I write to use GraphVizWriter to show my graph in a png format ? I use dotNetRDF library. private void button1_Click(object sender, EventArgs e) { Stream myStream = null; var parser = new…
ghasedak
  • 41
  • 1
  • 5
1 2
3