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
0 answers
How to build a RDF knowledge graph by triples
I have a set of triples and can also draw a "graph" by them using some codes, but how to convert it into a RDF version like real knowledge graphs like fb15k or so.

WalterW
- 19
- 1
1
vote
4 answers
What is is the simplest way to setup a local rdf triple store with SPARQL endpoint?
For learning SPARQL it might be useful to have full control both over the query text and the data (RDF triples). While there are many public SPARQL endpoints available their data is typically read-only for obvious reasons. To actively apply…

cknoll
- 2,130
- 4
- 18
- 34
1
vote
1 answer
How to get all related triples to a subject in SPARQL?
I would need to get all data related to a subject. I tried to query for
SELECT * WHERE {?s ?p ?o}
But the problem is that some of the ?o objects are URIs and I also need those connections, until the connections end. For example, I…

Ian Kurtis
- 137
- 7
1
vote
0 answers
How to insert data into named graph using SPARQL where the named graph is given as variable?
I want to insert data into the named graph called as the ?author variable. How could I achieve this?
PREFIX dcterms:
INSERT
{
GRAPH ?author {
?book dcterms:provenance
}
}
WHERE
{
?book…

Ian Kurtis
- 137
- 7
1
vote
0 answers
How to insert data into named graph using SPARQL?
I am using python to insert data into blazegraph. I want to specify the named graph to which the data gets inserted, but the code I am using is triggering the error:
SPARQLWrapper.SPARQLExceptions.QueryBadFormed: QueryBadFormed: a bad request has…

Ian Kurtis
- 137
- 7
1
vote
1 answer
Conjunction issue in OPENIE 6
I am using OPENIE6 (https://github.com/dair-iitd/openie6) with the following input:-
President Trump met the leaders of India and China.
But I am getting only one triplet:-
ARG1 = President trump
V = met
ARG2 = the leaders of India and…

Mohit Sarpal
- 21
- 6
1
vote
1 answer
Get an item value from a nested dictionary inside the rows of a pandas df and get rid off the rest
I implemented allennlp's OIE, which extracts subject, predicate, object information (in the form of ARG0, V, ARG1 etc) embedded in nested strings. However, I need to make sure that each output is linked to the given ID of the original sentence.
I…

blah
- 674
- 3
- 17
1
vote
1 answer
Finding triples based on multiple subjects (SANSA-STACK)
I have a code to find Triples using a subject,So I am using Triple's find method and supplying the necessary like this :
import net.sansa_stack.rdf.spark.model._
val node1 = NodeFactory.createURI("http://dbpedia.org/resource/Charles_Dickens")
…
user13686103
1
vote
0 answers
SPARQL Delete Query
I have been searching everywhere for a way to delete only duplicate triples, however, I haven't been successfully in finding solution.
For example if I had the following triple store
ex:Bob rdf:type dbo:Person.
ex:Bob rdf:type dbo:Person.
ex:Bob…

Alex
- 21
- 5
1
vote
0 answers
How to extract triples for both normal and complex sentences or Document of sentences (subject, object and predicate) using Stanford CoreNLP in Java?
import java.io.*;
import java.util.*;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
…
1
vote
1 answer
Loading a entity relation triple csv as nodes
Suppose I have a csv file with data in the format (Subject, relation, Object).
Is it possible to load this into neo4j as a graph modeled such that the subject and object become nodes and the relation between them is the relation from the triple?…

Abhinav23
- 71
- 9
1
vote
0 answers
Regarding Mapping Language and How we can convert data into triples?
Firstly, I have created an Ontology using Protege without any individuals. Basically, it's a x.owl file where it is storing the info about relations/properties(object), subject, domain, range and class details in both of the RDF/XML format or in the…

adarsh
- 140
- 12
1
vote
0 answers
How to reference a set of RDF triples in other RDF triples?
This will be clearer with an example. Assume that the parts have URIs.
Consider a simple statement S1: Water-Is-Transparent
Consider another statement S2: He-Believes-(Water-Is-Transparent)
How can one write statement S2 as He-Believes-S1 using RDF?…

solyarist
- 424
- 3
- 17
1
vote
1 answer
Using RDF/OWL/Triples with quantitive links?
I'm having difficulties grasping the concept of classes/instances/properties. If we take the following example: Class 'Pizza', Inferred Subclass 'Cheesy Pizza' = Pizza & HasIngredient Some 'Cheese'. I can follow this logic and I see the usefulness…

vincent kleine
- 724
- 1
- 6
- 22
1
vote
0 answers
How to express RDF triple metadata?
In addition to storing triples like "Maine Coon" ex:instanceOf "cat breed" I'd like to store triples describing other triples. For example, imagine a triple above had IRI foo, I'd like to store meta:createdAt "11-11-2018" or …

futpib
- 520
- 6
- 15