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

Migration from LinkedWiki to SPARQL #21

Closed
physikerwelt opened this issue Dec 12, 2024 · 2 comments
Closed

Migration from LinkedWiki to SPARQL #21

physikerwelt opened this issue Dec 12, 2024 · 2 comments

Comments

@physikerwelt
Copy link
Collaborator

LinkedWiki uses https://github.com/BorderCloud/SPARQL to get the SPARQL result. There, a type is generated.

https://github.com/BorderCloud/SPARQL/blob/73915d86eb6d7859961934e87c2f325d368ad44d/src/ParserSparqlResult.php#L97

which can give useful information on how to display the results. Does this extension provide similar functionality?

As I was trying to use the extension from another extension, I was looking at https://github.com/ProfessionalWiki/SPARQL/blob/master/tests/integration/SparqlLuaQueryRunnerIntegrationTest.php to understand how I could use the SPARQL result in downstream applications.

@physikerwelt physikerwelt changed the title Migration from LinkedWiki ot SPARQL Migration from LinkedWiki to SPARQL Dec 12, 2024
@JeroenDeDauw
Copy link
Member

Could you give an example of this type information that you receive via LinkedWiki?

For your extension, do you wish to use the PHP services provided by our SPARQL extension to talk to Blazegraph? The PHP Service we have (SparqlLuaQueryRunner) is extremely thin: it makes an HTTP request to blazegraph, and then returns blazegraphs own result structure. If you need to run SPARQL queries in your own extension, you could use the same approach by copying over some lines from this extension. I don't see what you would gain by building on top of this extension.

@physikerwelt
Copy link
Collaborator Author

Yes, after looking at your code, that seems to be the best solution. Thank you for your very valuable hint here.

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

2 participants