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
2
votes
1 answer
Updating embedded triples using xquery in MarkLogic
I tried to update embedded triples in marklogic using xquery but it seems to be not working for embedded triples however the same query is working for other triples
can you tell me if there is some other option which needs to specified while…

Ankita Bhowmik
- 463
- 1
- 5
- 20
2
votes
1 answer
Marklogic : advantage of using embedded triples over triple store
I have two questions related to embedded triples.
Can we apply inferencing through the use of rulesets?
Can we do a selective updates on triples given a subject and predicate?
Essentially, the bigger question is if the inferencing and updates on…

Deepak Saini
- 103
- 8
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…

Eyes Charming
- 83
- 6
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.…

user1358444
- 88
- 4
2
votes
2 answers
org.openrdf.query.MalformedQueryException for SparQL insert
I've read ways on how to insert data using SPARQL. Some references use INSERT while other references use INSERT DATA. So, I'm confused on how will I do the query. My goal is to insert a data property which is the CourseName to a class "Course" in my…

Rocky
- 429
- 1
- 9
- 26
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,559
- 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
- 50,282
- 110
- 242
- 312
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,793
- 7
- 34
- 62
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
- 241
- 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,477
- 4
- 18
- 27
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…

user1103710
- 15
- 5
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
GraphDB clear automatically duplicate triples?
I have a question about how graphDB work with multiples graphs in the same repository: If 2 different graphs has the same triples, the graphDB keep the 2 triples (duplicated) or clean?

Gisane Michelon
- 11
- 1
1
vote
0 answers
Can sparql count the same statement of triples?
I want to count triples with the same statement , is that possible?
I have an turtle file of ontology , and i want to count the triples in apache jena fuseki server.
for an example , i have some triples like this :
### …

Marshall
- 23
- 4
1
vote
1 answer
What SPARQL query will return the data from the example?
In my RDF store I have the following triples
For schema:
ex:animal rdf:type rdf:Class;
rdfs:subClassof ex:Package_animal.
ex:height rdf:type rdf:Property;
rdfs:label "height";
rdfs:domain ex:animal.
ex:age rdf:type rdf:Property;
…

user20297975
- 129
- 8