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]
123 questions
2
votes
1 answer
SPARQL DELETE query Error: EOF while parsing
I'm trying to delete some triples using this query:
deleteQuery = """DELETE { ?a ?b ?c } WHERE { mynamespace:List mynamespace:Item ?c.
?a ?b ?c }"""
My namespace is already defined, so that's not an issue.
I'm not sure if I am using the correct…
![](../../users/profiles/901263.webp)
John Peter Thompson Garcés
- 1,613
- 1
- 18
- 34
2
votes
2 answers
Relational Database to Triple Store
I am trying to write a java program to transform the information from a MySQL table into triples, so I can later import them into a triple store. Is it possible to do so without creating an auxilliary RDF/XML file? How?
![](../../users/profiles/1041742.webp)
Dragos
- 2,803
- 8
- 34
- 53
2
votes
1 answer
SVC-CODEPOINT error loading triples to MarkLogic
When trying to load an ntriples file with about 7M triples in it, I get the following error from the REST-API:
{"errorResponse":{"statusCode":500, "status":"Internal Server Error",
"messageCode":"INTERNAL ERROR",
"message":"SVC-CODEPOINT:…
![](../../users/profiles/15000965.webp)
kefo
- 41
- 2
2
votes
2 answers
Translating a complex Sentence into set of SPO triple (RDF) (maybe with reification)
Having just started out in RDF and ontology, mainly in converting unstructured text to RDF (maybe manually), I found many examples for converting simple sentences to RDF triples 1 2 3, but not much about complex sentences (using adjectives or…
![](../../users/profiles/1921412.webp)
solyarist
- 364
- 2
- 16
2
votes
9 answers
JavaScript for-loop question
Is it possible for a for-loop to repeat a number 3 times? For instance,
for (i=0;i<=5;i++)
creates this: 1,2,3,4,5.
I want to create a loop that does this: 1,1,1,2,2,2,3,3,3,4,4,4,5,5,5
Is that possible?
![](../../users/profiles/713052.webp)
user713052
- 25
- 2
- 7
2
votes
1 answer
In TDE Marklogic how to escape null value triples?
![](../../users/profiles/11532444.webp)
AKG
- 31
- 2
2
votes
1 answer
Is there any limit on number of triples can be inserted in a single SPARQL query?
Using markLogic version 8.0-6.3
I am inserting and deleting triples in MarkLogic using
WITH <>
DELETE {}
INSERT {}
WHERE {}
clause.
In the insert clause there are almost 3000 triple patterns, on the running the query I am getting below…
![](../../users/profiles/8189205.webp)
amal srivastava
- 36
- 6
2
votes
1 answer
C-SPARQL query - match exact string literal
I am working with C-SPARQL and I want to query triples received from a stream. However I encountered an issue when using a query in which I want to match an exact string literal. I usually get a result with my queries (data is coming from the…
![](../../users/profiles/8358351.webp)
Agnes Fröschl
- 51
- 7
2
votes
1 answer
Sparql- Number Of Entities and Instances?
I'm doing small task on Sparql Query. I want to get the number of entities and number of instances. I have basic knowledge of Sparql and rdf. So I wrote sparql query to get the number of entities but i'm not 100% sure it's right. The endpoint i'm…
![](../../users/profiles/8853440.webp)
Aziz Mumtaz
- 45
- 1
- 5
2
votes
2 answers
SPARQL query for some kind of START WITH and CONNECT BY (Oracle)
I'm busy with a proof of concept working with a triple store. I have the following structure:
There are 2 relation types defined (triples). Top-down relation where the child is part of ("isPartOf" its parent and left-right where there are childs…
![](../../users/profiles/4609621.webp)
Jasper Huzen
- 1,312
- 9
- 19
2
votes
1 answer
Column name with spaces in tarql
I am using tarql (https://github.com/tarql/tarql) - uses sparql syntax - to transform CSV data into RDF triples.
I have a column name "web site". How can i bind to the variable using BIND function? I tried a lot of ways, but i didn't find the…
![](../../users/profiles/4627476.webp)
H.W.
- 333
- 1
- 3
- 18
2
votes
0 answers
How to extract freebase' data for triples(entity,relation,entity)?
I want to extract freebase'data for triples(entity,relation,entity),but the api of freebase is closed.
![](../../users/profiles/6123268.webp)
Aaron
- 21
- 3
2
votes
1 answer
Inferencing in embedded triples of Marklogic
I have the following 2 documents.
1 document has this data:
http://sector#Basic_Materials
…
![](../../users/profiles/4401713.webp)
Ankita Bhowmik
- 375
- 1
- 3
- 19
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…
![](../../users/profiles/4401713.webp)
Ankita Bhowmik
- 375
- 1
- 3
- 19
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…
![](../../users/profiles/5039514.webp)
Deepak Saini
- 103
- 8