how to do not merge results

20 views
Skip to first unread message

Marco Antonio Stranisci

unread,
Oct 18, 2022, 2:09:17 AM10/18/22
to ontop4obda
Hi,

(and thanks for your previous support that was precious)

I have a new question, though.

For a KG embedding task I need the output of my mappings to be only of the type s,p,o

However, Ontop automatically aggregate objects. So, in some cases I have such a result:

:Fargo :writtenBy :JoelCohen, :EthanCohen

Instead of

:Fargo :writtenBy :JoelCohen
:Fargo :writtenBy :EthanCohen

I tried some of the Ontop properties, but no one solved my issue. I also tried the "avoidPostProcessing" option that returned me that error: "Unexpected exception: Was expecting a unique and known DB term type to be extracted for the SQL variable g"

Thanks in advantage for your help

Best
Marco


Guohui Xiao

unread,
Oct 18, 2022, 8:22:02 AM10/18/22
to ontop4obda
Hi Marco,

If I understood correctly, you materialize triples with Ontop, and you expect the generated RDF files consisting of triples line by line. 

The question is about how to format the generated triples. Ontop also supports popular formats. What you are looking for is the "ntriples" format (https://www.w3.org/TR/n-triples/)

You can use the following option to specify output format:

 -f <outputFormat>, 
--format <outputFormat> The format of the materialized ontology. 
Default: rdfxml 
This options value is restricted to the following set of values: rdfxml, turtle, ntriples, nquads, trig, jsonld 

See the doc for more info:

Best,

Guohui

Marco Antonio Stranisci

unread,
Oct 18, 2022, 8:41:29 AM10/18/22
to ontop4obda
it works perfectly,

thanks a lot!

--
Please follow our guidelines on how to report a bug https://ontop-vkg.org/community/contributing/bug-report
---
You received this message because you are subscribed to a topic in the Google Groups "ontop4obda" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ontop4obda/4bOfJW15meE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ontop4obda+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ontop4obda/da918d83-f90c-40c0-9e8e-1940aca56072n%40googlegroups.com.


--
You didn’t see the thing because you don’t know how to look. And you don’t know how to look because you don’t know the names
Reply all
Reply to author
Forward
0 new messages