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
2
votes
1 answer

Instance of OWL-class with unionOf (n3)

Suppose i have an OWL-class as following: :picture rdf:type owl:Class ; owl:unionOf(:creator :theme :title :date) . With :creator, :theme, :title and :date either an owl:ObjectProperty or owl:DataProperty. For example: :creator …
Aerus
  • 4,332
  • 5
  • 43
  • 62
1
vote
2 answers

How would RDF, N3, 3stores, and SPARQL handle an additional timestamp field?

I want to build a queryable RDF database of events of the form: :Bob :played :musiccd :at "00:00:00 UTC on 1 January 1970" Is this possible with RDF/N3/3store/SPARQL? Does SPARQL know how to compare datetimes and test for membership in datetime…
mcandre
  • 22,868
  • 20
  • 88
  • 147
1
vote
0 answers

how update in sparql

In my n3 data in rdf, i have the following data, and i want to change a little bit. I have the value 'no' and i want to change that value to 'yes' house:a1 a stand:Map; house:id "1"^^xsd:integer; house:sell "no"; I want to select that value…
1
vote
1 answer

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: . @prefix : . { (2 1) math:sum ?y. } => { :result :is…
Jason
  • 45
  • 1
  • 6
1
vote
0 answers

adding multiple object values in a RDF triple

I need to add an OR condition in place of just "Female" i.e., a single value. Like it should be "Female" || "female". Basically I want to make it case insensitive so that this condition matches with both values be it written small or capital…
MaxSteel
  • 513
  • 1
  • 4
  • 11
1
vote
1 answer

How to save a protege 4.3 project in .n3 file notation?

I have a protege project and i have saved it in .owl file format and i want now to genrate a .n3 file from the same project. Is there a way out using Protege 4.3?
Kinuthia
  • 61
  • 10
1
vote
1 answer

Hash Partitioning RDF (OWL/N3/NT) datasets

I have an N3 dataset that contains triples. I wish to hash partition this dataset. Is there a hash partitioner that hash partitions OWL/NT/N3 datasets? If not, could you please provide me with some code/tips on how to proceed with parsing the file…
NewToAndroid
  • 581
  • 7
  • 25
1
vote
1 answer

RDF java sample of freebase not working

https://developers.google.com/freebase/v1/rdf-overview. The java code gives the following error. Please let me know how to resolve this. log4j:WARN No appenders could be found for logger…
1
vote
0 answers

Integrating Eulersharp with Cliopatria

I would like to use the Cliopatria Semantic Web Server however I am currently making extensive use of n3-rules using EulerSharp. I don't want to lose the termination guarantees provided by n3, but I would like to serve the resulting graphs via…
Recurse
  • 3,557
  • 1
  • 23
  • 36
1
vote
1 answer

n3 inferencing applying str:contains to xsd:string in EulerSharp

I have a dataset that contains a large number of resources I need to reconcile against various existing data. The most straight forward approach is to do some simple string comparisons between various literals. Unfortunately the literals are typed…
Recurse
  • 3,557
  • 1
  • 23
  • 36
0
votes
1 answer

How can I get blankNode ID in dotnetrdf librery in C#

I create a blankNode like this code using dotNetRDF BlankNode ddd = k.CreateBlankNode(); and then assert it in a n3 file but when I open the n3 file by notpad it show this blankNode like []. How can I create a blankNode ID by myself to then delete…
ghasedak
  • 41
  • 1
  • 5
0
votes
1 answer

delete a node or triple using dotenetrdf librery?

I have an n3 file formate and i want to delete a node or triple from it how can i do it? should i use sparql query?please help me i want to have an n3 file and want to delete a node from it. i pass a graph that use in my parent form to this delete…
ghasedak
  • 41
  • 1
  • 5
0
votes
1 answer

Notation3 rules using language tags

I have facts expressed in Turtle/Notation3 syntax that use language tags for localization of strings, e.g. @prefix rdfs: . @prefix ex: . ex:A rdfs:label "example"@en; rdfs:label…
florian k
  • 1
  • 1
0
votes
1 answer

Execute N3 rules on top of a Turtle file using Python

I have a turtle RDF file that contains all information related to an ontology and some instances and an N3 file that has different rules. My goal is to execute the N3 rules on top of the Turtle file. Is it possible to use RDFLib (Python library) or…
Bacara
  • 6,903
  • 1
  • 20
  • 21
0
votes
1 answer

How to model a ontology with OWL(Turtle syntax?

How can I model the bold text (Villages are part of Provience)in the example below to owl using Turtle Syntax Turkey is made up of Provience and district Istanbul, Ankara, Mersin are Provience Villages are part of Provience :Turkey rdf:type…