<http://data.monuniversite.fr/individual/u127j7jvhh> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#UserAccount> .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#emailAddress> "preno...@monuniversite.fr" .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#passwordLinkExpires> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#passwordChangeRequired> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#externalAuthOnly> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#loginCount> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#lastLoginTime> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#status> "ACTIVE" .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#hasPermissionSet> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#SELF_EDITOR> .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#externalAuthId> "lelogin" .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#firstName> "Prénom" .
<http://data.monuniversite.fr/individual/u127j7jvhh> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#lastName> "Nom" .
<http://data.monuniversite.fr/individual/admin> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#UserAccount> .
<http://data.monuniversite.fr/individual/admin> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#RootUserAccount> .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#emailAddress> "vivo...@mydomain.edu" .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#firstName> "root" .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#lastName> "user" .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#passwordLinkExpires> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#passwordChangeRequired> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#md5password> "xxxxxxxxxxxxxx" .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#externalAuthOnly> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#loginCount> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#lastLoginTime> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#status> "ACTIVE" .
<http://data.monuniversite.fr/individual/admin> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#hasPermissionSet> <http://vitro.mannlib.cornell.edu/ns/vitro/authorization#ADMIN> .
--
You received this message because you are subscribed to the Google Groups "VIVO Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vivo-tech+...@googlegroups.com.
To post to this group, send email to vivo...@googlegroups.com.
Visit this group at https://groups.google.com/group/vivo-tech.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/22648d67-c66a-4da9-a9be-0e9a9fe26285%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/CADz%3D0U%3DmKnKsR2d8Yw7P3YSr2BkwL9hpCE5KQWSD-smM4ku3Vg%40mail.gmail.com.
Le 24 sept. 2018 à 20:47, Andrew Woods <awo...@duraspace.org> a écrit :
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/CADz%3D0U%3DmKnKsR2d8Yw7P3YSr2BkwL9hpCE5KQWSD-smM4ku3Vg%40mail.gmail.com.
Joachim, Fabien;
A proper solution for automated management of VIVO user accounts seems like a good idea, but will take considerable effort. I don’t know where that would appear in our priorities.
I have devised an automated process which may work for you, but which can only be described as a horrible hack. I am attaching
The scripts invoke pages in VIVO, and submit forms using curl. Sadly, those pages do not return error codes if the operation fails, so you will need to devise other methods to monitor for success.
Perhaps this will be helpful.
Jim
--
You received this message because you are subscribed to a topic in the Google Groups "VIVO Tech" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/vivo-tech/p_1EqIB7LF4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
vivo-tech+...@googlegroups.com.
To post to this group, send email to
vivo...@googlegroups.com.
Visit this group at https://groups.google.com/group/vivo-tech.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/067981f4-bdaa-4890-9c30-2ee2e337e6a2%40googlegroups.com.
Rails.logger.debug ("Account data stored in #{rdf_file}")
File.open(rdf_file, "w+") do |f|
f.write(RDF::NTriples::Writer.buffer {|writer| data.each {|d| writer << d}})
end
[
"curl -c #{cookie_file} -s -o /dev/null '#{Rails.configuration.vivo.uri}/programLogin?email=#{Rails.configuration.vivo.email}&password=#{Rails.configuration.vivo.password}'",
"curl -b #{cookie_file} -s -o /dev/null -d action=configModels '#{Rails.configuration.vivo.uri}/ingest'",
"curl -b #{cookie_file} -s -o /dev/null -F 'modelName=#{VIVO_USER_ACCOUNTS_BOX}' -F 'language=N-TRIPLE' -F 'filePath=@#{rdf_file}' '#{Rails.configuration.vivo.uri}/uploadRDF'"
].each do |command|
Rails.logger.debug (command)
system(command)
end