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

CI test for duplicate IDs #339

Open
netfl0 opened this issue Dec 18, 2024 · 0 comments
Open

CI test for duplicate IDs #339

netfl0 opened this issue Dec 18, 2024 · 0 comments
Assignees
Milestone

Comments

@netfl0
Copy link
Contributor

netfl0 commented Dec 18, 2024

CI test should reject if this query returns any results.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX d3f: <http://d3fend.mitre.org/ontologies/d3fend.owl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT (COUNT(?s) AS ?count) ?o
WHERE {
  ?s rdfs:subClassOf* d3f:DefensiveTechnique .
  ?s d3f:d3fend-id ?o .
  FILTER (!isBlank(?o))
}
GROUP BY ?o
HAVING (COUNT(?s) > 1)
ORDER BY DESC(?count)

example query.

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