retrieving triples in a .txt file

56 views
Skip to first unread message

mnk.ya...@gmail.com

unread,
May 7, 2021, 12:52:21 PM5/7/21
to TopBraid Suite Users
Hello Everyone,
Can we retrieve only triplets from .ttl file  in  a .txt file or any other file from top braid composer maestro edition.
Please Help!
Thanks & Regards
Monika

Holger Knublauch

unread,
May 9, 2021, 7:56:45 PM5/9/21
to topbrai...@googlegroups.com

Hi Monika,

I am not sure I understand your question, so I cannot help you. Could you clarify what input file you have and what you want TopBraid to do with that file?

Holger

--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/8865882f-8477-403d-89bd-3f03b15e04a3n%40googlegroups.com.

Monika Yadav

unread,
May 10, 2021, 4:45:57 AM5/10/21
to topbrai...@googlegroups.com
I want to export triples from the .ttl file. Actually I have made a ontology by merging many .ttl file in top braid composer. Now I want to export it in any format so that i can have only triples(Subject,Predicate, Object).
e.g. drug1 hasadversereaction reaction1
drug2 hasadversereaction reaction2
where drug1 and drug2 are classes, hasdversereaction is an object property having all values for adverse reaction due to drug

Virus-free. www.avast.com



--
Regards:
Monika Yadav
Assistant Professor
M.Tech (Computer Science)


Irene Polikoff

unread,
May 10, 2021, 10:25:45 AM5/10/21
to topbrai...@googlegroups.com
I think a simpler question is “what does your Turtle file contains that you do not want”.

Holger Knublauch

unread,
May 10, 2021, 8:22:24 PM5/10/21
to topbrai...@googlegroups.com

Still not clear to me what you are trying to achieve. Maybe run a SPARQL query such as

SELECT *
WHERE {
    ?subject ?predicate ?object
}

and then use the "Export results to file..." button to produce a Spreadsheet. In SPARQL you can then FILTER out certain triples.

Holger

Monika Yadav

unread,
May 11, 2021, 1:28:20 AM5/11/21
to topbrai...@googlegroups.com

Actually I am getting the following output in my turtle file(I have provided only one term as an example). I want the ones in BOLD ONLY

:Abdominalandgastrointestinalinfections
  a :TOCILIZUMAB ;
  :hasadverseReaction "Abdominal and gastrointestinal infections" ;

  rdfs:label "Abdominal and gastrointestinal infections" ;

Virus-free. www.avast.com

Monika Yadav

unread,
May 11, 2021, 1:28:48 AM5/11/21
to topbrai...@googlegroups.com
Yes I can try this

Virus-free. www.avast.com

Irene Polikoff

unread,
May 11, 2021, 1:35:27 AM5/11/21
to topbrai...@googlegroups.com
?

You have listed 3 triples:

:Abdominalandgastrointestinalinfections a :TOCILIZUMAB.
:Abdominalandgastrointestinalinfections :hasadverseReaction "Abdominal and gastrointestinal infections” .
:Abdominalandgastrointestinalinfections rdfs:label "Abdominal and gastrointestinal infections" .

and then you bolded object of one triple and predicate and object of another triple

Monika Yadav

unread,
May 11, 2021, 8:29:32 AM5/11/21
to topbrai...@googlegroups.com
oh! yes you are right. Maybe I got confused. I'll figure out what I actually want to do. Thanks a lot dear

Virus-free. www.avast.com

Reply all
Reply to author
Forward
0 new messages