Skip to content

Commit

Permalink
Merge pull request #21 from monarch-initiative/better-cats
Browse files Browse the repository at this point in the history
Get more of those Biolink categories in there
  • Loading branch information
caufieldjh authored Oct 6, 2022
2 parents 24a85c4 + 85233a0 commit 61afa3b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/sparql/bl-categories.ru
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,11 @@ INSERT {
}
WHERE {
{
?biolink_category skos:exactMatch ?entity_to_type .
?biolink_category (skos:exactMatch|skos:narrowMatch)+ ?entity_to_type .
?subject (rdf:type|rdfs:subClassOf|owl:equivalentClass|^owl:equivalentClass|owl:sameAs|^owl:sameAs)* ?entity_to_type .
FILTER(STRSTARTS(str(?biolink_category),"https://w3id.org/biolink/vocab/"))
FILTER(isIRI(?subject))
FILTER(isIRI(?biolink_category))
FILTER(isIRI(?entity_to_type))
}
UNION
{
?biolink_category skos:narrowMatch ?entity_to_type .
?subject rdfs:subClassOf+ ?entity_to_type .
FILTER(STRSTARTS(str(?biolink_category),"https://w3id.org/biolink/vocab/"))
FILTER(isIRI(?subject))
FILTER(isIRI(?biolink_category))
FILTER(isIRI(?entity_to_type))
}
}

0 comments on commit 61afa3b

Please sign in to comment.