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

Robot upgrade #8

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/caseologue_robot_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
if: always()
run: |
cd robot_config/
wget https://github.com/ontodev/robot/releases/download/v1.8.1/robot.jar
wget https://github.com/ontodev/robot/releases/download/v1.9.1/robot.jar
java -jar robot.jar report --input ${{inputs.edam_path}} --output report_profile.tsv --profile report_queries.txt

- name: Print report output
Expand Down
2 changes: 1 addition & 1 deletion robot_config/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## download .jar file
wget https://github.com/ontodev/robot/releases/download/v1.8.1/robot.jar
wget https://github.com/ontodev/robot/releases/download/v1.9.1/robot.jar
-P /usr/local/bin
## download shell script wrapper
curl https://raw.githubusercontent.com/ontodev/robot/master/bin/robot >
Expand Down
61 changes: 61 additions & 0 deletions robot_config/deprecated_class_reference.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT ?entity ?property ?value WHERE {
{
VALUES ?property {
rdfs:subClassOf
}
?entity a owl:Class;
owl:deprecated true ;
?property ?value .
FILTER ( ?value NOT IN (owl:DeprecatedClass, owl:Thing) )
}
UNION
{
VALUES ?property {
owl:equivalentClass
owl:disjointWith
}
?entity a owl:Class;
owl:deprecated true ;
?property ?value .
}
UNION
{
VALUES ?property {
rdfs:subClassOf
owl:equivalentClass
owl:disjointWith
}
?entity a owl:Class;
owl:deprecated true .
?value ?property ?entity .
}
UNION
{
VALUES ?property {
owl:ObjectProperty
owl:DataProperty
}
?entity a owl:Class ;
owl:deprecated true ;
?property ?value .
}
UNION
{
VALUES ?property {
owl:someValuesFrom
owl:allValuesFrom
}
?value a owl:Class ;
owl:deprecated true .
?rest a owl:Restriction ;
?property ?value .
BIND("blank node" as ?entity)
}
}
ORDER BY ?entity
2 changes: 1 addition & 1 deletion robot_config/report_queries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ERROR file:./multiple_definition.rq
ERROR file:./boolean_datatype.rq
ERROR file:./duplicate_definition.rq
WARN file:./misused_replaced_by.rq
ERROR deprecated_class_reference
ERROR file:./deprecated_class_reference.rq
ERROR deprecated_property_reference
WARN duplicate_exact_synonym
WARN duplicate_label_synonym
Expand Down