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
0
votes
0 answers
How to find triples from two different XML in Marklogic Database?
Can we extract data from two different XML using one TDE to find triples. Like Subject,Predicate from one XML and Object from other XML. For that how to set the context ??

Anuj Gupta
- 31
- 4
0
votes
1 answer
How to insert TRIPLES into ML DB as triples, generated by TDE template
I have template which creates triple from XML. Now I want to insert these triples in ML DB as RDF document/triples. Below is the code which I am using to insert the triples but it is inserted as XML doc and not as triples.

Anuj Gupta
- 31
- 4
0
votes
0 answers
How can I get all the triples from Wikidata, for all the proper nouns?
My end aim is to get all the Wikidata triples in the form
{SubjectLabel, PredicateLabel, ObjectLabel}, preferable in CSV format, for all the proper nouns, such as People, Cities, Countries, Books, etc.
I tried querying for all subjects having P31…

darth
- 169
- 1
- 16
0
votes
1 answer
Extract SVO triples from preprocessed text
I need to extract subject-verb-object triples from a Dutch text. The text is analysed by a Dutch NLP tool named Frog which tokenized, parsed, tagged, lemmatized,...it. Frog produces FoLiA XML, or tab-delimited column-formatted output, one line per…

Bambi
- 715
- 2
- 8
- 19
0
votes
1 answer
Sparql - Conditional Output
I am very new to the semantic web and sparql. I have an internal ontology that uses SmartLogic in order to manage the data.
I am writing some simple queries to get started.
PREFIX skos: # Simple Knowledge…

Busturdust
- 2,447
- 24
- 41
0
votes
1 answer
Creating links to ontology nodes
Let's say that, being abstract from any language, we have some ontology made of triples (e.g. subject (S) - predicate (P) - object (O))
Now if I want to, for some reason, annotate any of these triples (nodes), than I'd like to keep links to them…

mvbl fst
- 5,213
- 8
- 42
- 59
0
votes
1 answer
How to read nested OWL properties?
I have an OWL file, a sample snippet of which is as below.
some literal 1
…

Tanny
- 540
- 4
- 29
0
votes
1 answer
How to read non-standard RDF format in Sesame
When loading a N3 RDF file with the below format into Sesame Repository, is it possible to tell Sesame '|' as separator?
The below triple is separated by | :
http://article.com/1-3|http://relationship.com/wasGeneratedBy|http://edit.com/comment1-2

jd466
- 547
- 1
- 6
- 20
0
votes
2 answers
How to partition RDF triples in Java based on subject
For partitioning RDF triples by subject, I use String.hashCode() of the subject and put the triple in the corresponding partition. The goal is to be able to process the partitioned files in memory(processing large file may not be possible).
Now in…

jd466
- 547
- 1
- 6
- 20
0
votes
2 answers
How to parse more than one sentence from text file using Stanford dependency parse?
I have a text file which have many line, i wanted to parse all sentences, but it seems like i get all sentences but parse only the first sentence, not sure where m i making mistake.
import nltk
from nltk.parse.stanford import…

nizam uddin
- 341
- 2
- 6
- 15
0
votes
1 answer
Removing triples from returned document
I have unmanaged triples stored in my documents. When I return documents using
var doc = cts.doc('/document/location/doc.json');
doc;
I get my doc, with the triples attached.
{
"name": "Place name",
"address": "Place address"
…

MoreThanCarbon
- 71
- 1
- 2
0
votes
1 answer
Combine SELECT and ASK queries in a same query
Context: 14M triples, Blazegraph workbench. I'm currently attempting to design queries which combine SELECT and ASK. More exactly, I want to select results in my graph where an assumption is true.
For my example, imagine I've many books which have…

Cyril
- 485
- 4
- 15
0
votes
1 answer
Retrieving object and predicate for a subject without sparql
I retrieved the subject through the model using getSubject() and for this subject I want to create a relation for their respective object and predicate. How to retrieve an object and predicate for a particular subject through jena and without…

randomxyz
- 3
- 1
0
votes
1 answer
How to create Triples from MySql
I have used the d2rq utility to create .ttl files and then have imported it in MarkLofgic but unable to get the desired results.
Moreover my data looks like this.
How can I create Triples from MySql Data to be used for Querying in SPARQL in…

Swapneel Golapkar
- 109
- 8
0
votes
1 answer
Create concept vector from ontology
I have a set of documents pertaining to a domain. The data in those documents can be conceptually mapped to a domain ontology. I need to find similarity scores between those docs. In literature, many have proposed to create a vector of…

swapna sourav rout
- 817
- 1
- 6
- 8