Skip to content

Commit f99c8e8

Browse files
authored
Merge branch 'ontodev:master' into master
2 parents ead7a45 + c7071a7 commit f99c8e8

File tree

17 files changed

+5334
-16
lines changed

17 files changed

+5334
-16
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.9.0] - 2022-06-16
11+
12+
### Added
13+
- Add new command: [`expand`] [#964]
14+
15+
### Fixed
16+
- Fix OBOGraphs by updating `guava` [#1009]
17+
1018
## [1.8.4] - 2022-06-10
1119

1220
### Added
@@ -266,7 +274,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
266274

267275
First official release of ROBOT!
268276

269-
[Unreleased]: https://github.com/ontodev/robot/compare/v1.8.4...HEAD
277+
[Unreleased]: https://github.com/ontodev/robot/compare/v1.9.0...HEAD
278+
[1.9.0]: https://github.com/ontodev/robot/compare/v1.8.4...v1.9.0
270279
[1.8.4]: https://github.com/ontodev/robot/compare/v1.8.3...v1.8.4
271280
[1.8.3]: https://github.com/ontodev/robot/compare/v1.8.2...v1.8.3
272281
[1.8.2]: https://github.com/ontodev/robot/compare/v1.8.1...v1.8.2
@@ -308,10 +317,12 @@ First official release of ROBOT!
308317
[`template`]: http://robot.obolibrary.org/template
309318
[`validate`]: http://robot.obolibrary.org/validate
310319

320+
[#1009]: https://github.com/ontodev/robot/issues/1009
311321
[#979]: https://github.com/ontodev/robot/pull/979
312322
[#978]: https://github.com/ontodev/robot/pull/978
313323
[#973]: https://github.com/ontodev/robot/pull/973
314324
[#971]: https://github.com/ontodev/robot/pull/971
325+
[#964]: https://github.com/ontodev/robot/pull/964
315326
[#960]: https://github.com/ontodev/robot/pull/960
316327
[#955]: https://github.com/ontodev/robot/pull/955
317328
[#953]: https://github.com/ontodev/robot/pull/953

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Maven Central](https://img.shields.io/maven-central/v/org.obolibrary.robot/robot.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.obolibrary.robot%22%20AND%20a:%22robot%22)
55
[![Javadocs](https://www.javadoc.io/badge/org.obolibrary.robot/robot-core.svg)](https://www.javadoc.io/doc/org.obolibrary.robot/robot-core)
66

7-
ROBOT is a tool for working with [Open Biomedical Ontologies](http://obofoundry.org).
7+
ROBOT is a command-line tool and library for automating ontology development tasks, with a focus on [Open Biological and Biomedical Ontologies (OBO)](http://obofoundry.org).
88

99
### Cite ROBOT
1010

docs/_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<a href="/collapse">collapse</a><br>
3333
<a href="/convert">convert</a><br>
3434
<a href="/diff">diff</a><br>
35+
<a href="/expand">expand</a><br>
3536
<a href="/explain">explain</a><br>
3637
<a href="/export">export</a><br>
3738
<a href="/export-prefixes">export-prefixes</a><br>

docs/convert.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ The file format is determined by the extension of the output file (e.g. `.obo`),
1313
- owx - [OWL/XML](https://www.w3.org/TR/owl2-xml-serialization/)
1414
- ttl - [Turtle](https://www.w3.org/TR/turtle/)
1515

16+
In the following example we convert an input ontology to OBOGraphs JSON, explicitly specifying the target format with `--format`:
17+
18+
robot convert -i ro-base.owl --format json -o results/ro-base.json
19+
1620
### Handling Compressed Files
1721

1822
All ROBOT commands support [gzip](https://www.gzip.org/) format files ending with the extension `.gz`. Any of the above formats can be compressed as long as the output ends with `.gz` (format must be specified for a compressed output):

docs/examples/expanded-annotated.ttl

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
@prefix : <http://example.org/> .
2+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
3+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
4+
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
5+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
6+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
7+
@base <http://example.org/> .
8+
9+
<http://example.org/> rdf:type owl:Ontology .
10+
11+
#################################################################
12+
# Annotation properties
13+
#################################################################
14+
15+
### http://example.org/never_part_of
16+
:never_part_of rdf:type owl:AnnotationProperty ;
17+
<http://purl.obolibrary.org/obo/OMO_0002000> """PREFIX owl: <http://www.w3.org/2002/07/owl#>
18+
PREFIX : <http://example.org/>
19+
CONSTRUCT {
20+
?a a owl:Class .
21+
?b a owl:Class .
22+
?a owl:disjointWith [
23+
a owl:Restriction ;
24+
owl:onProperty :part_of ;
25+
owl:someValuesFrom ?b
26+
]
27+
}
28+
WHERE {
29+
?a :never_part_of ?b .
30+
}""" .
31+
32+
33+
### http://example.org/part_disjoint_with
34+
:part_disjoint_with rdf:type owl:AnnotationProperty ;
35+
<http://purl.obolibrary.org/obo/OMO_0002000> """PREFIX owl: <http://www.w3.org/2002/07/owl#>
36+
PREFIX : <http://example.org/>
37+
CONSTRUCT {
38+
?a a owl:Class .
39+
?b a owl:Class .
40+
[
41+
a owl:Restriction ;
42+
owl:onProperty :part_of ;
43+
owl:someValuesFrom ?a ;
44+
owl:disjointWith [
45+
a owl:Restriction ;
46+
owl:onProperty :part_of ;
47+
owl:someValuesFrom ?b
48+
]
49+
]
50+
}
51+
WHERE {
52+
?a :part_disjoint_with ?b .
53+
}""" .
54+
55+
56+
### http://purl.obolibrary.org/obo/OMO_0002000
57+
<http://purl.obolibrary.org/obo/OMO_0002000> rdf:type owl:AnnotationProperty ;
58+
rdfs:label "defined by construct" .
59+
60+
61+
### http://purl.org/dc/terms/source
62+
<http://purl.org/dc/terms/source> rdf:type owl:AnnotationProperty .
63+
64+
65+
#################################################################
66+
# Object Properties
67+
#################################################################
68+
69+
### http://example.org/part_of
70+
:part_of rdf:type owl:ObjectProperty .
71+
72+
73+
#################################################################
74+
# Classes
75+
#################################################################
76+
77+
### http://example.org/A
78+
:A rdf:type owl:Class ;
79+
:part_disjoint_with :B .
80+
81+
[ rdf:type owl:Axiom ;
82+
owl:annotatedSource :A ;
83+
owl:annotatedProperty rdf:type ;
84+
owl:annotatedTarget owl:Class ;
85+
<http://purl.org/dc/terms/source> :never_part_of
86+
] .
87+
88+
[ rdf:type owl:Axiom ;
89+
owl:annotatedSource :A ;
90+
owl:annotatedProperty rdf:type ;
91+
owl:annotatedTarget owl:Class ;
92+
<http://purl.org/dc/terms/source> :part_disjoint_with
93+
] .
94+
95+
96+
### http://example.org/B
97+
:B rdf:type owl:Class ;
98+
owl:disjointWith [ rdf:type owl:Restriction ;
99+
owl:onProperty :part_of ;
100+
owl:someValuesFrom :A
101+
] ;
102+
:never_part_of :A .
103+
104+
[ rdf:type owl:Axiom ;
105+
owl:annotatedSource :B ;
106+
owl:annotatedProperty rdf:type ;
107+
owl:annotatedTarget owl:Class ;
108+
<http://purl.org/dc/terms/source> :never_part_of
109+
] .
110+
111+
[ rdf:type owl:Axiom ;
112+
owl:annotatedSource :B ;
113+
owl:annotatedProperty rdf:type ;
114+
owl:annotatedTarget owl:Class ;
115+
<http://purl.org/dc/terms/source> :part_disjoint_with
116+
] .
117+
118+
[ rdf:type owl:Axiom ;
119+
owl:annotatedSource :B ;
120+
owl:annotatedProperty owl:disjointWith ;
121+
owl:annotatedTarget [ rdf:type owl:Restriction ;
122+
owl:onProperty :part_of ;
123+
owl:someValuesFrom :A
124+
] ;
125+
<http://purl.org/dc/terms/source> :never_part_of
126+
] .
127+
128+
129+
#################################################################
130+
# General axioms
131+
#################################################################
132+
133+
[ rdf:type owl:Axiom ;
134+
owl:annotatedSource [ rdf:type owl:Restriction ;
135+
owl:onProperty :part_of ;
136+
owl:someValuesFrom :A ;
137+
owl:disjointWith [ rdf:type owl:Restriction ;
138+
owl:onProperty :part_of ;
139+
owl:someValuesFrom :B
140+
]
141+
] ;
142+
owl:annotatedProperty owl:disjointWith ;
143+
owl:annotatedTarget [ rdf:type owl:Restriction ;
144+
owl:onProperty :part_of ;
145+
owl:someValuesFrom :B
146+
] ;
147+
<http://purl.org/dc/terms/source> :part_disjoint_with
148+
] .
149+
150+
151+
### Generated by the OWL API (version 4.5.6) https://github.com/owlcs/owlapi

docs/examples/expanded-terms.ttl

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
@prefix : <http://example.org/> .
2+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
3+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
4+
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
5+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
6+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
7+
@base <http://example.org/> .
8+
9+
<http://example.org/> rdf:type owl:Ontology .
10+
11+
#################################################################
12+
# Annotation properties
13+
#################################################################
14+
15+
### http://example.org/never_part_of
16+
:never_part_of rdf:type owl:AnnotationProperty ;
17+
<http://purl.obolibrary.org/obo/OMO_0002000> """PREFIX owl: <http://www.w3.org/2002/07/owl#>
18+
PREFIX : <http://example.org/>
19+
CONSTRUCT {
20+
?a a owl:Class .
21+
?b a owl:Class .
22+
?a owl:disjointWith [
23+
a owl:Restriction ;
24+
owl:onProperty :part_of ;
25+
owl:someValuesFrom ?b
26+
]
27+
}
28+
WHERE {
29+
?a :never_part_of ?b .
30+
}""" .
31+
32+
33+
### http://example.org/part_disjoint_with
34+
:part_disjoint_with rdf:type owl:AnnotationProperty ;
35+
<http://purl.obolibrary.org/obo/OMO_0002000> """PREFIX owl: <http://www.w3.org/2002/07/owl#>
36+
PREFIX : <http://example.org/>
37+
CONSTRUCT {
38+
?a a owl:Class .
39+
?b a owl:Class .
40+
[
41+
a owl:Restriction ;
42+
owl:onProperty :part_of ;
43+
owl:someValuesFrom ?a ;
44+
owl:disjointWith [
45+
a owl:Restriction ;
46+
owl:onProperty :part_of ;
47+
owl:someValuesFrom ?b
48+
]
49+
]
50+
}
51+
WHERE {
52+
?a :part_disjoint_with ?b .
53+
}""" .
54+
55+
56+
### http://purl.obolibrary.org/obo/OMO_0002000
57+
<http://purl.obolibrary.org/obo/OMO_0002000> rdf:type owl:AnnotationProperty ;
58+
rdfs:label "defined by construct" .
59+
60+
61+
#################################################################
62+
# Object Properties
63+
#################################################################
64+
65+
### http://example.org/part_of
66+
:part_of rdf:type owl:ObjectProperty .
67+
68+
69+
#################################################################
70+
# Classes
71+
#################################################################
72+
73+
### http://example.org/A
74+
:A rdf:type owl:Class ;
75+
:part_disjoint_with :B .
76+
77+
78+
### http://example.org/B
79+
:B rdf:type owl:Class ;
80+
owl:disjointWith [ rdf:type owl:Restriction ;
81+
owl:onProperty :part_of ;
82+
owl:someValuesFrom :A
83+
] ;
84+
:never_part_of :A .
85+
86+
87+
### Generated by the OWL API (version 4.5.6) https://github.com/owlcs/owlapi

0 commit comments

Comments
 (0)