Skip to content

Commit

Permalink
Try broader bl-categories update query
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Oct 5, 2022
1 parent ffa318c commit 85233a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 0 additions & 2 deletions src/ontology/phenio.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ $(BLMODEL):

$(ONT).owl: $(ONT)-full.owl $(BLMODEL)
$(ROBOT) merge --input $< --input $(BLMODEL) \
reason --reasoner ELK \
reduce \
query --update $(BLQUERY) \
unmerge --input $(BLMODEL) \
annotate --ontology-iri $(URIBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) \
Expand Down
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 85233a0

Please sign in to comment.