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

GH-464 Add log function to SPARQL #465

Merged
merged 1 commit into from
Mar 27, 2024
Merged

GH-464 Add log function to SPARQL #465

merged 1 commit into from
Mar 27, 2024

Conversation

ate47
Copy link
Collaborator

@ate47 ate47 commented Mar 27, 2024

Issue resolved (if any): #464
Description of this pull request:

Add the log function inside the SPARQL endpoint. It can be used with <http://the-qa-company.com/qendpoint/#log>(value, base = 10). For example:

PREFIX qep: <http://the-qa-company.com/qendpoint/#>

SELECT * {
	VALUES ?number { 10 80 420 10000 20000 1000000 }
	BIND (qep:log(?number) AS ?logNumberDef)
	BIND (qep:log(?number, 10) AS ?logNumber10)
	BIND (qep:log(?number, 16) AS ?logNumber16)
	BIND (qep:log(?number, 2) AS ?logNumber2)
}

Please check all the lines before posting the pull request:

  • I've created tests for all my changes
  • My pull request isn't fixing or changing multiple unlinked elements (please create one pull request for each element)
  • I've applied the code formatter (mvn formatter:format on the backend, npm run format on the frontend) before posting my pull request, mvn formatter:validate to validate the formatting on the backend, npm run validate on the frontend
  • All my commits have relevant names
  • I've squashed my commits (if necessary)

@ate47 ate47 merged commit 147d4f1 into predev_rdf4j Mar 27, 2024
16 checks passed
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

Successfully merging this pull request may close these issues.

1 participant