Questions tagged [triples]

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.

More Information

List of subject-predicate-object databases

123 questions
2
votes
0 answers

Extracting triples from text in php using Stanford-NLP?

I have a text .. I went to extract triples from text .. I use Stanford-NLP Library in php Standford-NLP How can I extract triples(subject - object - predicate)? The example code in the GitHub ReadMe shows how to write the code. The output is a…
2
votes
2 answers

Copy specific graph from dbpedia to Virtuoso graphs

I am trying to copy a specific graph from dbpedia.org to local virtuoso using dotnetrdf in C#. E.g. dbpedia.org/resource/Category:Cyclists_at_the_2012_Summer_Olympics Code below gets graph from Virtuoso and asserts all its triples to my new graph.…
2
votes
2 answers

Selecting triples from specific graph in MarkLogic7

I need to provide isolation between similar triples in different graphs (collections) in MarkLogic. For this to work I have to specify which graph I want the triples to be retrieved from, and my approach is this: cts:triples( (), …
John Smith
  • 1,461
  • 1
  • 12
  • 18
2
votes
2 answers

Creating a triple store query using SQL - how to find all triples that have a common predicate and object

I have a database that acts like a triple store, except that it is just a simple MySQL database. I want to select all triples that have a common predicate and object. Info about RDF and triples I can't seem to work out the SQL. If I had just a…
Ankur
  • 47,089
  • 107
  • 237
  • 309
2
votes
2 answers

How to get basic term associations from a list of terms in SPARQL

One of my coworkers is needing to get two sets of RDF triples involving term associations. The terms come from a list, and the associations come from a set of triples using those terms. The first set is all triples with any item in the term list…
Bondolin
  • 2,241
  • 6
  • 25
  • 51
2
votes
1 answer

Confused about Ontology being "data-driven" s.t. updating an ontology

I have read here* that ontologies (RDF's in nature) are data-driven because one can work with a small ontology and use it for an application, and later... integrate additional concepts to the same ontology to make it more robust. My concern is how…
daryl
  • 231
  • 1
  • 3
  • 13
2
votes
1 answer

Update a triple in openrdf-sesame endpoint using cURL

I'm fairly new to everything semantic web related, and I'm having trouble figuring this problem out. So, I'm uploading RDF data from .trig files to my endpoint using cURL POST requests. For example something like:
Michael
  • 1,437
  • 4
  • 18
  • 26
1
vote
1 answer

Extract Triples From RDF File With Multiple Ontology

I need a source code with java and jena (or other languages) that ables to extract triples from a RDF file that has multiple ontology. There is a source code in This Page but this code needs to determine an ontology in source code. I need a source…
1
vote
3 answers

RegEx in PHP to extract components of nquad

I'm looking around for a RegEx that can help me parse an nquad file. An nquad file is a straight text file where each line represents a quad (s, p, o, c):
robotrobot
  • 193
  • 1
  • 8
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
  • 565
  • 1
  • 8
1
vote
1 answer

Extracting Postprocessed Triples from AllenNLP Open IE model

I would like to extract clean triples in tuple form of (subject,relation,object) from the Allen NLP Open IE predictor model. Currently, I see that the steps are as follows OIE_output = predictor_OIE.predict(sentence=sent) for verb in…
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
  • 3
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
  • 7
1 2
3
8 9