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

Report: Bind anonymous nodes to a generic label to avoid cluttering diff #873

Closed
matentzn opened this issue May 17, 2021 · 2 comments · Fixed by #916
Closed

Report: Bind anonymous nodes to a generic label to avoid cluttering diff #873

matentzn opened this issue May 17, 2021 · 2 comments · Fixed by #916
Assignees

Comments

@matentzn
Copy link
Contributor

matentzn commented May 17, 2021

I would like to suggest to generally bind blank nodes from sparql queries to some generic string. Its annoying to have huge diffs everytime due to the random number assigned to these.. There are probably more sophisticated solutions, but I think this is the best low effort, medium reward one.

PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT DISTINCT ?entity ?property ?value WHERE {
 VALUES ?property { owl:equivalentClass }
 ?entity ?property ?value1 .
 ?entity ?property ?value2 .
 FILTER (?value1 != ?value2)
 FILTER (!isBlank(?entity))
 BIND(IF(isBlank(?value1),"anonymous expression",?value1) as ?value)
}
ORDER BY ?entity
@jamesaoverton
Copy link
Member

Has this been implemented?

@matentzn
Copy link
Contributor Author

I will check this again.

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

Successfully merging a pull request may close this issue.

2 participants