A triple is an assertion of the form subject-predicate-object, for example [JohnSmith-brotherOf-JaneSmith], and [JaneSmith-hasAge-"34"]. Assertions (binary relations) of this type form the basis of the Semantic Web languages RDF and OWL. Triples can be interlinked if the object of one triple is the subject of another. Databases designed to manage such assertions are often called triplestores.
Questions tagged [triples]
141 questions
1
vote
1 answer
How to define type of object in Redland R RDF triples
I'm trying to use the Redland R RDF implementation to construct a simple RDF store but am having problems writing non-literal triples. In code, after setting up world and model, whilst the literal triple
addStatement(model,
…

drw
- 943
- 1
- 10
- 25
1
vote
0 answers
How can I visualize triples in the form of a knowledge graph in a web application?
I have a text file with all the triples (from OpenIE). I want to visualize the triples in the form of a knowledge graph in my web application. I am already aware of Neo4j, but they have a seperate UI of their own to visualize the knowledge…

Vinay Mundada
- 317
- 3
- 13
1
vote
1 answer
How to extract triples using Stanford CoreNLP package in java?
I want a code snippet which would take input a sentence or set of sentences and output or extract the triples(Subject,Predicate and Object) using Stanford CoreNLP package in java

Dupsmaskara19
- 91
- 1
- 4
1
vote
1 answer
How to compare 2 dates in SPARQL
I'm studying non-temporal SPARQL Queries and I'm a bit confused about the concept of RDF triples..
Say, I want to find all employees that cancelled a job and then later chose to complete the same job that they cancelled. So how can I store the date…

Landon
- 21
- 2
- 8
1
vote
1 answer
Reach the same object with a set of predicates in Sesame
Assuming (s,p,o) and list, I would like to use Model structure in Sesame and check if it is possible to use subject s, list of predicates and reach o at the end.
for example we say that there is a path, if for (s,p,o) and {p1,p2,p3}, there exists…

jd466
- 547
- 1
- 6
- 20
1
vote
1 answer
multiple filter in openrdf sesame Model
I would like to filter a Model, get all the triples which has a specific predicate and a subject of type C. The below code does not return any result, does any one has any idea how to implement it?
return triples.filter(null, new…

jd466
- 547
- 1
- 6
- 20
1
vote
2 answers
How to load triplets from a csv-file into MarkLogic?
What I am starting with, is the postcode table from the netherlands. I split it up into a couple of csv files, containing for instance the city as subject, PartOf as predicate and municipality as object. This gives you this in a…

Anton Verver
- 11
- 2
1
vote
1 answer
How to get JJ and NN (adjective and Noun) from the triples generated StanfordDependencyParser with NLTK?
i got triples using the following code, but i want to get nouns and adjective from tripples, i tried alot but failed, new to NLTK and python, any help ?
from nltk.parse.stanford import StanfordDependencyParser
dp_prsr=…

nizam uddin
- 341
- 2
- 6
- 15
1
vote
1 answer
SPARQL algebra: tricky ASK from named graphs if any triples do not exist
Take these two named graphs:
# graph :yesterday
:Foo
:likes :Bar ;
:likes :Qux .
# graph :today
:Foo
:likes :Bar ;
:likes :Baz .
Now say you want to find out if any of the triples from graph :yesterday are absent from graph…

Blake Regalia
- 2,677
- 2
- 20
- 29
1
vote
2 answers
Save triples in a SPARQL remote endpoint using Jena library?
How can Jena be used to save triples in a SPARQL endpoint?
I could use SPARQL RestFul API but I wonder if this is also doable using Jena classes.

bsz
- 321
- 1
- 9
1
vote
2 answers
SPARQL algebra: Excluding nodes based on triples they have
Take this graph:
:thing1 a :Foo ;
:has :A ;
:has :B .
:thing2 a :Foo ;
:has :B ;
:has :A .
:thing3 a :Foo ;
:has :A ;
:has :B ;
:has :C .
I want to select :thing1 and :thing2, but NOT :thing3.
Here is the SPARQL query…

Blake Regalia
- 2,677
- 2
- 20
- 29
1
vote
1 answer
Sparql query between ontologies
I load Jena with two ontologies. They both have a Person class defined. They both have a person name John. They are not the "same" John; different person, different prefix, different IRI. Without changing original ontologies, is there a system (say…

Paul
- 608
- 1
- 9
- 23
1
vote
2 answers
Triple extraction from a sentance
I have this parsed text in this format, I got it by using Standford nlp.
(ROOT
(S
(NP (DT A) (NN passenger) (NN plane))
(VP (VBZ has)
(VP (VBD crashed)
(ADVP (RB shortly))
(PP (IN after)
(NP
…

Amal
- 21
- 4
1
vote
3 answers
In SPARQL, can I distinguish between relationships and property keys?
In the neo4j quick queries pane, there are "relationship types" and "property keys" which make sense in the context of the Neo4j cypher query syntax.
In SPARQL, is there a way to distinguish between triples that are relationship and triples that…

Kristian
- 21,204
- 19
- 101
- 176
1
vote
1 answer
getting rdf xml:attribute in sparql query
Given This RDF:
]>

Hasan Sarraj
- 92
- 1
- 8