Re: [Virtuoso-users] Submit SPARQL query with POST method

2021-04-30 Thread Alfredo Serafini
...moreover  I find useful to adopt the encoded version, more or less this
way:

$ curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept:text/csv" \
--data-urlencode "SELECT DISTINCT ?Concept WHERE { [] a ?Concept } LIMIT
100" \
--data-urlencode "default-graph-uri=https://example.org/mygraph; \
"http://localhost:8890/sparql;

best,
Alfredo


Il giorno ven 30 apr 2021 alle ore 16:13 jerven Bolleman
 ha scritto:

> Hi Luis, Roel,
>
> The --data section should start with query=
>
> curl -X POST -vH "Accept:application/sparql-results+xml" --data
> "query=select distinct ?Concept where {[] a ?Concept} LIMIT 100"
> http://localhost:8890/sparql
>
> For the rest using a response type other than HTML  is recommended
> e.g. the sparql-results in xml I added.
>
> Regards,
> Jerven
>
> On 30/04/2021 15:29, Roel Janssen wrote:
> > Hi,
> >
> > On Fri, 2021-04-30 at 13:24 +, Luí­s Moreira de Sousa via Virtuoso-
> > users wrote:
> >> Hi all,
> >>
> >> I would like to submit queries to the SPARQL endpoint using the POST
> >> method to avoid payload limits with GET. For some reason, Virtuoso is
> >> not able to identify the query in the message body. An example:
> >>
> >> $ curl -X POST -H "Accept:text/html" --data "select distinct ?Concept
> >> where {[] a ?Concept} LIMIT 100" http://localhost:8890/sparql
> >> Virtuoso 22023 Error The request does not contain text of SPARQL
> >>
> >> Am I doing something wrong here? Or should I use a different method?
> >
> > Try adding another header with: -H "Content-Type: application/sparql-
> > update".
> >
> > Kind regards,
> > Roel Janssen
> >
> >
> >
> >
> > ___
> > Virtuoso-users mailing list
> > Virtuoso-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/virtuoso-users
> >
>
> --
>
> *Jerven Tjalling Bolleman*
> Principal Software Developer
> *SIB | Swiss Institute of Bioinformatics*
> 1, rue Michel Servet - CH 1211 Geneva 4 - Switzerland
> t +41 22 379 58 85
> Jerven.Bolleman@sib.swiss - www.sib.swiss
>
>
>
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] reset DBA password

2020-04-17 Thread Alfredo Serafini
HI Hugh thanks but this does'nt work. We probably changed the default
password at the time, but I don't have it currently.
Is there any way to reset the administration password from commandline, for
instance?

Il giorno ven 17 apr 2020 alle ore 11:23 Hugh Williams <
hwilli...@openlinksw.com> ha scritto:

> Hi Alfredo,
>
> If you are restoring a backup of the current database or is password was
> not changed since the last backup then it must restore with the same
> password. That is unless the restore actually failed and when you restarted
> Virtuoso actually an empty database with the default dba/dba  uid/pwd is
> created, thus I would suggest trying “dba” as a password first and if this
> is successful you need to determine why the restore was not successful.
>
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software
> Home Page: http://www.openlinksw.com
> Community Support: https://community.openlinksw.com
> Company Blog: https://medium.com/openlink-software-blog
> Virtuoso Blog: https://medium.com/virtuoso-blog
> Data Access Drivers Blog:
> https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers
> LinkedIn -- http://www.linkedin.com/company/openlink-software/
> Twitter  -- http://twitter.com/OpenLink
> Google+  -- http://plus.google.com/100570109519069333827/
> Facebook -- http://www.facebook.com/OpenLinkSoftware
> Universal Data Access, Integration, and Management Technology Providers
>
>
>
>
>
> On 16 Apr 2020, at 12:06, Alfredo Serafini  wrote:
>
> Hi after restoring a previous version of a db backup (community edition,
> v7) on the current development machine, we discovered the dba password for
> that backup is different from the one we expected.
>
> Is there any way to force a different password for dba from
> the commandline? (I need to restore some of the data in that backup...)
>
> Searching on the mailing list I found those similar messages:
> https://sourceforge.net/p/virtuoso/mailman/message/35615507/
> https://sourceforge.net/p/virtuoso/mailman/message/34705536/
>
> any help would be appreciated, thanks in advance!
>
> Alfredo
> ___
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
>
>
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Re: [Virtuoso-users] reset DBA password

2020-04-16 Thread Alfredo Serafini
Hi after restoring a previous version of a db backup (community edition,
v7) on the current development machine, we discovered the dba password for
that backup is different from the one we expected.

Is there any way to force a different password for dba from
the commandline? (I need to restore some of the data in that backup...)

Searching on the mailing list I found those similar messages:
https://sourceforge.net/p/virtuoso/mailman/message/35615507/
https://sourceforge.net/p/virtuoso/mailman/message/34705536/

any help would be appreciated, thanks in advance!

Alfredo
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users