CLI SKOS Importing Error

41 views
Skip to first unread message

junio.b...@gmail.com

unread,
Feb 28, 2020, 2:26:13 PM2/28/20
to AtoM Users
I'm trying to import some terms with SKOS Files, but running the command "docker-compose exec atom php symfony import:bulk --taxonomy="35" -v --index /Path/To/SkosFiles" I got a error with the message "Unable to parse data of an unknown format.". When I try import the same SKOS file by GUI on Import SKOS tab, everything works well. I'm using the AtoM 2.5.3 installed in a Docker with Docker-Compose.

Dan Gillean

unread,
Mar 2, 2020, 12:46:47 PM3/2/20
to ICA-AtoM Users
Hi Junio, 

It took us a little while to reproduce this, but fortunately the solution is very easy. 

I tested first in the Vagrant box and had no issues, so I asked one of our developers using the Docker environment to see if they were able to recreate what you are seeing. 

It turns out that for some reason, the Docker env requires that you supply an absolute path to the import files, and not a relative one. 

So for example, this import failed: 
  • docker-compose exec -u root atom php symfony import:bulk --taxonomy="35" -v --index skos/everything-ever.xml
But this one succeeded: 
  • docker-compose exec -u root atom php symfony import:bulk --taxonomy="35" -v --index /atom/src/skos/everything-ever.xml
Note the difference in the file paths. 

Hope this helps!

Regards, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


On Fri, Feb 28, 2020 at 2:26 PM <junio.b...@gmail.com> wrote:
I'm trying to import some terms with SKOS Files, but running the command "docker-compose exec atom php symfony import:bulk --taxonomy="35" -v --index /Path/To/SkosFiles" I got a error with the message "Unable to parse data of an unknown format.". When I try import the same SKOS file by GUI on Import SKOS tab, everything works well. I'm using the AtoM 2.5.3 installed in a Docker with Docker-Compose.

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/e5a0764e-ca7c-4bf0-b788-45418e8402c2%40googlegroups.com.

Divino Júnio Batista Lopes

unread,
Mar 2, 2020, 2:38:17 PM3/2/20
to AtoM Users
Hello Dan, I did how you said and it worked. Thank you very much.


Em segunda-feira, 2 de março de 2020 14:46:47 UTC-3, Dan Gillean escreveu:
Hi Junio, 

It took us a little while to reproduce this, but fortunately the solution is very easy. 

I tested first in the Vagrant box and had no issues, so I asked one of our developers using the Docker environment to see if they were able to recreate what you are seeing. 

It turns out that for some reason, the Docker env requires that you supply an absolute path to the import files, and not a relative one. 

So for example, this import failed: 
  • docker-compose exec -u root atom php symfony import:bulk --taxonomy="35" -v --index skos/everything-ever.xml
But this one succeeded: 
  • docker-compose exec -u root atom php symfony import:bulk --taxonomy="35" -v --index /atom/src/skos/everything-ever.xml
Note the difference in the file paths. 

Hope this helps!

Regards, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


On Fri, Feb 28, 2020 at 2:26 PM <junio.b...@gmail.com> wrote:
I'm trying to import some terms with SKOS Files, but running the command "docker-compose exec atom php symfony import:bulk --taxonomy="35" -v --index /Path/To/SkosFiles" I got a error with the message "Unable to parse data of an unknown format.". When I try import the same SKOS file by GUI on Import SKOS tab, everything works well. I'm using the AtoM 2.5.3 installed in a Docker with Docker-Compose.

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-ato...@googlegroups.com.

Dan Gillean

unread,
Mar 2, 2020, 2:54:30 PM3/2/20
to ICA-AtoM Users
Glad to hear it! 

I've filed an issue to add a note about this to our documentation, to help future users avoid this problem: 
Regards,

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him

To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/1e645284-8d55-4136-8287-887a120e9ee3%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages