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
2 answers
Representing a couple of RDF-triples using tensor. How to programming this modeling process using Python?
A question about representing a couple of RDF-triples using tensor.
Scenario:
A RDF-triple is used to express simple statements about resources, formatting (subject, predicate, object).
Suppose I have two predicates, one is play_for, the other is…

fishiwhj
- 819
- 2
- 11
- 22
-1
votes
1 answer
openie :FileNotFoundError: [Errno 2] No such file or directory: '/tmp/openie/out.txt'
I use openie tool to extract triples, but this error is reported when I run two py files at the same time to extract triples, how should I deal with it?
(1)
def…

gym
- 9
- 2
-1
votes
2 answers
Translate ">" in XML RDF Triple
I have JSON String value > which is a special character in XML.
After the data ingestion, the XML String becomes \u003e.
How can I preserve > in the XML String?

Fiona Chen
- 1,358
- 5
- 16
-1
votes
1 answer
SPARQL: Return subjects w/ more than one specific type of object
Thanks in advance. I have an issue where merging some work produces two guids for a single subject in my triplestore. I need a way to isolate all of those instances so that I can normalize those guids. I'm new to SPARQL. I've tried returning…

Juston Lantrip
- 61
- 1
- 11
-1
votes
1 answer
How to construct triples manually in Marklogic
I have been trying to insert triples in Marklogic using this query
xquery version "1.0-ml";
import module namespace sem = "http://marklogic.com/semantics"
at "/MarkLogic/semantics.xqy";
declare variable $TRIPLE as xs:string external ;
declare…

Ankita Bhowmik
- 463
- 1
- 5
- 20
-1
votes
1 answer
What's wrong witht this joint sparql query which gives missed results
I have 2 sparql queries but they don't returns correct results (triples)
First one return correct result but some triples are missed
the second one returns all correct triples but not in the right format, in fact i don't want to display…

bibi007
- 1
- 2