Skip to content

Commit b31e492

Browse files
committed
add generation of obsolete triples TTL file and corresponding SPARQL construct query
1 parent 4eca2ec commit b31e492

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

dumps.Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ifndef UNIQUE_FACETS_ANNOTATION
5656
endif
5757

5858
# The default target that generates all necessary OWL files.
59-
all: checkenv print_pdb_external_onts print_query_outputs remove_embargoed_data $(FINAL_DUMPS_DIR)/owlery.owl $(FINAL_DUMPS_DIR)/solr.json $(FINAL_DUMPS_DIR)/pdb.owl pdb_csvs pdb_sideloads
59+
all: checkenv print_pdb_external_onts print_query_outputs remove_embargoed_data $(FINAL_DUMPS_DIR)/owlery.owl $(FINAL_DUMPS_DIR)/solr.json $(FINAL_DUMPS_DIR)/pdb.owl $(FINAL_DUMPS_DIR)/obsolete_triples.ttl pdb_csvs pdb_sideloads
6060

6161
# Declares a phony target to remove embargoed data.
6262
.PHONY: remove_embargoed_data
@@ -169,6 +169,10 @@ $(FINAL_DUMPS_DIR)/pdb.owl: $(patsubst %, $(RAW_DUMPS_DIR)/construct_%.owl, $(DU
169169
$(FINAL_DUMPS_DIR)/owlery.owl: $(patsubst %, $(RAW_DUMPS_DIR)/construct_%.owl, $(DUMPS_OWLERY)) $(RAW_DUMPS_DIR)/constructReasoned_merged.owl $(SIDE_LOADING_ONTS)
170170
$(call log, $@, $(ROBOT) merge $(patsubst %, -i %, $^) filter --axioms "logical" --preserve-structure true annotate --ontology-iri "http://virtualflybrain.org/data/VFB/OWL/owlery.owl" -o $@ $(STDOUT_FILTER))
171171

172+
# Generates the obsolete triples TTL file for curator review.
173+
$(FINAL_DUMPS_DIR)/obsolete_triples.ttl: $(RAW_DUMPS_DIR)/obsolete_triples.ttl
174+
$(call log, $@, cp $< $@)
175+
172176
# Generates the side loading CSV files for the PDB
173177
pdb_sideloads: $(SIDE_LOADING_ONTS) | $(CSV_IMPORTS)
174178
$(call log, $@, for file in $(SIDE_LOADING_ONTS); do base=$$(basename $$file .owl); var_part=$${base#*_}; java $(ROBOT_ARGS) -jar $(OWL2NEOCSV) $$file "none" $(CSV_IMPORTS) false $(INFER_ANNOTATE_RELATION) $${var_part} only_edges; done)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
PREFIX owl: <http://www.w3.org/2002/07/owl#>
2+
3+
CONSTRUCT { ?s ?p ?o . }
4+
WHERE {
5+
?s ?p ?o .
6+
?o owl:deprecated true .
7+
FILTER(?p != owl:deprecated)
8+
}

0 commit comments

Comments
 (0)