Comments (8)
Hi @pawelostr, @arenas-guerrero-julian,
I've tried with the example provided and it is a mistake in the mapping, morph works fine. With the attached mapping and v2.6.0 I get as result nested quoted triples.
from morph-kgc.
Thanks for checking this @anaigmo
from morph-kgc.
Hi @pawelostr ,
I just tried your example with Morph-KGC v 2.4.0 and with the latest version available in the repository and it is working correctly generating all the triples. I am on Ubuntu. CI test cases pass on python 3.11 and MacOS.
I wonder if it could be your MacOS version. Please try on another OS.
Julián
from morph-kgc.
Hi Julián,
So I've tried the mappings on Windows 11 22H2 with Python 3.9.13 and in Google Colab, and unfortunatelly the result it still the same - no triples from <#outerTriplesMap>
are generated.
Below is a script for Colab, in which exactly 0 triples are generated, as to exacerbate the problem I've switched <#innerTriplesMap>
and <#middleTriplesMap>
to rml:NonAssertedTriplesMap
.
!pip install morph-kgc
!git clone https://gitlab.com/pawelostr/rdf-star-animals.git
!echo "[Something]" > /content/rdf-star-animals/config-temp.ini
!echo "mappings=animals.ttl" >> /content/rdf-star-animals/config-temp.ini
!cd /content/rdf-star-animals && python3 -m morph_kgc config-temp.ini
On a side note, I've tried almost every combination of NonAssertedTriplesMap, AssertedTriplesMap, TriplesMap, and all the combinations of prefixes from RML and R2RML to no avail.
Edit: So I also tested it on up-to-date Arch with python 3.11.3 in conda env on 2.5.1, and again only inner and mid triples are generated.
from morph-kgc.
Hi @pawelostr ,
I tried again and it is working.
Julián
from morph-kgc.
Hey @anaigmo @arenas-guerrero-julian,
There was indeed an error in my original example, as I've mixed some old and new stuff, and @anaigmo 's works in both 2.5.1 and 2.6.0.
For posteriority I'll leave a modified one that's fully on rml
prefix http://w3id.org/rml/
, that's cohesive with morph rml-star test cases as of 2.6.0.
from morph-kgc.
This issue is related to #124
from morph-kgc.
Unfortunately the original diagnosis (#174 (comment)) was wrong, and uploaded example mapping was not representative of the issue at hand.
(producing no double quoted triples most of the time, in some cases there will be one triple generated)
only the second part is the problem, first is a problem of incorrect mappings that have been created during attemps at diagnosis of the bug.
What Happens?
If a second level of deeply nested quoted triples is attempted to be generated (<< << < s p o > p1 o1 >> p2 o2 >>
) and there's more than one predicateObjectMap
(whether as a predicateObjectMap
or as a class in subjectMap
) in a base (the < s p o >
) AssertedTriplesMap
or NonAssertedTriplesMap
, only one triple is generated.
To Reproduce
Run test/issues/issue_174 (tests a and b will fail, c will pass) on a pre-pull request no 177 (<=2.6.0) morph-kgc.
Resolution
Pull request no. 177 fixes described problem and 178 adds additional tests.
from morph-kgc.
Related Issues (20)
- Missing triples in output (mapping file with self-join) HOT 1
- rdf-star generation failed HOT 5
- JSON Files Format HOT 1
- Question: Why is using RML file slower than YARRRML HOT 1
- Maintain documentation in a separate repository HOT 1
- Update duckdb dependency to latest stable version (v.0.10.0)
- Mandatory dependency sqlalchemy HOT 3
- ENH: Specify relational database through YARRRML data source HOT 1
- NULL value not ignored for Parquet file format HOT 4
- Output to Kafka topic doesn't seem to work HOT 4
- AttributeError: 'DataFrame' object has no attribute 'map' in version 2.7.0 HOT 2
- Problem Input Database HOT 1
- Use of UDFs when fetching data from Oracle for building KG HOT 4
- Applying rml:reference to each RML-F result HOT 2
- YARRRML conditions on objects are not correctly processed HOT 3
- YARRRML external references HOT 1
- Issue with use of functions in YARRRML configuration HOT 2
- Two logical sources with rr:sqlQuery for the same table HOT 2
- Use of YARRRML with a Pandas dataframe as source HOT 5
- Impala connector HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morph-kgc.