Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes between v0.9.0 and current #375

Open
ianpiper opened this issue Dec 11, 2020 · 4 comments
Open

Changes between v0.9.0 and current #375

ianpiper opened this issue Dec 11, 2020 · 4 comments

Comments

@ianpiper
Copy link

I have a program that is working using v0.9.0, but if I install the latest version 1.1 I think) it fails. I've been trying to find out why, and I think it is because of the way the SPARQL endpoint is constructed. My code has this (which worked with v0.9.0):

$sparql = new EasyRdf_Sparql_Client('https://[myserver]/[path]');

The docs for the current version suggest this:

$sparql = new \EasyRdf\Sparql\Client('http://dbpedia.org/sparql');

Am I reading this right? If I install the latest version, is this the only change in the way EasyRDF works? I've been looking for a list of changes, but can't find anything.

One other question. I have another script that currently uses ARC2. I'd like to repurpose it to use EasyRDF instead. One issue I have with the current script is that it needs to POST a block of text. The script fails if the block is more than about 4K characters. I suspect that this might be a limitation of ARC2, but I wanted to ask whether I'm likely to run into similar issues if I POST more than this amount of text using EasyRDF.

Thanks for any guidance.

@k00ni
Copy link
Contributor

k00ni commented Dec 11, 2020

Can you give us more information about your code and environment (PHP version, other libraries in use etc.)? Also, what fails? Is there an error message?

Have a look at https://github.com/easyrdf/easyrdf/blob/master/CHANGELOG.md for changes since 0.9.0.

@ianpiper
Copy link
Author

OK, I have worked out where I was going wrong. I was using v 1.11 but with the older style code for generating a sparql endpoint. I have it all working now.

I'd still be interested in knowing whether there is a limit to the size of POSTed content with EasyRDF (as I say, when I used ARC2 for this it failed with character counts above about 4000.

@k00ni
Copy link
Contributor

k00ni commented Dec 14, 2020

I'd still be interested in knowing whether there is a limit to the size of POSTed content with EasyRDF

I can't answer that. Maybe @njh or @indeyets?

@njh
Copy link
Collaborator

njh commented Jan 14, 2021

The big change was that version 1.0.0 uses proper PHP name spacing (added in PHP 5.3.0) - so you must change old code from EasyRdf_Sparql_Client to \EasyRdf\Sparql\Client.

I am not aware of any size limit in the HTTP client / SPARQL client. It is basically just passing strings around.
But it is possible that it is hitting some kind of PHP limit somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants