-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding skos-xref-duplicate to obo compliance suite (#752)
* Adding skos-xref-duplicate to obo compliance suite See geneontology/obographs#102 * derived files
- Loading branch information
Showing
7 changed files
with
234 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
tests/input/obo-compliance/skos-xref-duplicate/skos-xref-duplicate.expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"graphs" : [ { | ||
"id" : "http://purl.obolibrary.org/obo/skos-xref-duplicate.owl", | ||
"meta" : { | ||
"basicPropertyValues" : [ { | ||
"pred" : "http://www.geneontology.org/formats/oboInOwl#hasOBOFormatVersion", | ||
"val" : "1.4" | ||
} ] | ||
}, | ||
"nodes" : [ { | ||
"id" : "http://purl.obolibrary.org/obo/X_1", | ||
"type" : "CLASS", | ||
"meta" : { | ||
"xrefs" : [ { | ||
"val" : "Y:1" | ||
} ], | ||
"basicPropertyValues" : [ { | ||
"pred" : "http://www.w3.org/2004/02/skos/core#exactMatch", | ||
"val" : "http://purl.obolibrary.org/obo/Y_1" | ||
} ] | ||
} | ||
}, { | ||
"id" : "http://www.geneontology.org/formats/oboInOwl#hasDbXref", | ||
"lbl" : "database_cross_reference", | ||
"type" : "PROPERTY" | ||
}, { | ||
"id" : "http://www.geneontology.org/formats/oboInOwl#hasOBOFormatVersion", | ||
"lbl" : "has_obo_format_version", | ||
"type" : "PROPERTY" | ||
}, { | ||
"id" : "http://www.geneontology.org/formats/oboInOwl#id", | ||
"lbl" : "id", | ||
"type" : "PROPERTY" | ||
}, { | ||
"id" : "http://www.w3.org/2004/02/skos/core#exactMatch", | ||
"type" : "PROPERTY", | ||
"meta" : { | ||
"basicPropertyValues" : [ { | ||
"pred" : "http://www.geneontology.org/formats/oboInOwl#is_metadata_tag", | ||
"val" : "true" | ||
} ] | ||
} | ||
} ] | ||
} ] | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/input/obo-compliance/skos-xref-duplicate/skos-xref-duplicate.expected.obo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
format-version: 1.2 | ||
idspace: skos http://www.w3.org/2004/02/skos/core# | ||
ontology: skos-xref-duplicate | ||
|
||
[Term] | ||
id: X:1 | ||
xref: Y:1 | ||
relationship: skos:exactMatch Y:1 | ||
|
||
[Typedef] | ||
id: skos:exactMatch | ||
is_metadata_tag: true | ||
|
53 changes: 53 additions & 0 deletions
53
tests/input/obo-compliance/skos-xref-duplicate/skos-xref-duplicate.expected.ofn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Prefix(:=<http://purl.obolibrary.org/obo/skos-xref-duplicate.owl#>) | ||
Prefix(owl:=<http://www.w3.org/2002/07/owl#>) | ||
Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>) | ||
Prefix(xml:=<http://www.w3.org/XML/1998/namespace>) | ||
Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>) | ||
Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>) | ||
Prefix(skos:=<http://www.w3.org/2004/02/skos/core#>) | ||
|
||
|
||
Ontology(<http://purl.obolibrary.org/obo/skos-xref-duplicate.owl> | ||
Annotation(<http://www.geneontology.org/formats/oboInOwl#hasOBOFormatVersion> "1.4") | ||
|
||
Declaration(Class(<http://purl.obolibrary.org/obo/X_1>)) | ||
Declaration(AnnotationProperty(<http://www.geneontology.org/formats/oboInOwl#hasDbXref>)) | ||
Declaration(AnnotationProperty(<http://www.geneontology.org/formats/oboInOwl#hasOBOFormatVersion>)) | ||
Declaration(AnnotationProperty(<http://www.geneontology.org/formats/oboInOwl#id>)) | ||
Declaration(AnnotationProperty(<http://www.geneontology.org/formats/oboInOwl#is_metadata_tag>)) | ||
Declaration(AnnotationProperty(skos:exactMatch)) | ||
############################ | ||
# Annotation Properties | ||
############################ | ||
|
||
# Annotation Property: <http://www.geneontology.org/formats/oboInOwl#hasDbXref> (database_cross_reference) | ||
|
||
AnnotationAssertion(rdfs:label <http://www.geneontology.org/formats/oboInOwl#hasDbXref> "database_cross_reference") | ||
|
||
# Annotation Property: <http://www.geneontology.org/formats/oboInOwl#hasOBOFormatVersion> (has_obo_format_version) | ||
|
||
AnnotationAssertion(rdfs:label <http://www.geneontology.org/formats/oboInOwl#hasOBOFormatVersion> "has_obo_format_version") | ||
|
||
# Annotation Property: <http://www.geneontology.org/formats/oboInOwl#id> (id) | ||
|
||
AnnotationAssertion(rdfs:label <http://www.geneontology.org/formats/oboInOwl#id> "id") | ||
|
||
# Annotation Property: skos:exactMatch (skos:exactMatch) | ||
|
||
AnnotationAssertion(<http://www.geneontology.org/formats/oboInOwl#id> skos:exactMatch "skos:exactMatch") | ||
AnnotationAssertion(<http://www.geneontology.org/formats/oboInOwl#is_metadata_tag> skos:exactMatch "true"^^xsd:boolean) | ||
|
||
|
||
|
||
############################ | ||
# Classes | ||
############################ | ||
|
||
# Class: <http://purl.obolibrary.org/obo/X_1> (<http://purl.obolibrary.org/obo/X_1>) | ||
|
||
AnnotationAssertion(<http://www.geneontology.org/formats/oboInOwl#hasDbXref> <http://purl.obolibrary.org/obo/X_1> "Y:1") | ||
AnnotationAssertion(<http://www.geneontology.org/formats/oboInOwl#id> <http://purl.obolibrary.org/obo/X_1> "X:1") | ||
AnnotationAssertion(skos:exactMatch <http://purl.obolibrary.org/obo/X_1> <http://purl.obolibrary.org/obo/Y_1>) | ||
|
||
|
||
) |
90 changes: 90 additions & 0 deletions
90
tests/input/obo-compliance/skos-xref-duplicate/skos-xref-duplicate.expected.owl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?xml version="1.0"?> | ||
<rdf:RDF xmlns="http://purl.obolibrary.org/obo/skos-xref-duplicate.owl#" | ||
xml:base="http://purl.obolibrary.org/obo/skos-xref-duplicate.owl" | ||
xmlns:owl="http://www.w3.org/2002/07/owl#" | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:xml="http://www.w3.org/XML/1998/namespace" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#" | ||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | ||
xmlns:skos="http://www.w3.org/2004/02/skos/core#" | ||
xmlns:oboInOwl="http://www.geneontology.org/formats/oboInOwl#"> | ||
<owl:Ontology rdf:about="http://purl.obolibrary.org/obo/skos-xref-duplicate.owl"> | ||
<oboInOwl:hasOBOFormatVersion>1.4</oboInOwl:hasOBOFormatVersion> | ||
</owl:Ontology> | ||
|
||
|
||
|
||
<!-- | ||
/////////////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Annotation properties | ||
// | ||
/////////////////////////////////////////////////////////////////////////////////////// | ||
--> | ||
|
||
|
||
|
||
|
||
<!-- http://www.geneontology.org/formats/oboInOwl#hasDbXref --> | ||
|
||
<owl:AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#hasDbXref"> | ||
<rdfs:label>database_cross_reference</rdfs:label> | ||
</owl:AnnotationProperty> | ||
|
||
|
||
|
||
<!-- http://www.geneontology.org/formats/oboInOwl#hasOBOFormatVersion --> | ||
|
||
<owl:AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#hasOBOFormatVersion"> | ||
<rdfs:label>has_obo_format_version</rdfs:label> | ||
</owl:AnnotationProperty> | ||
|
||
|
||
|
||
<!-- http://www.geneontology.org/formats/oboInOwl#id --> | ||
|
||
<owl:AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#id"> | ||
<rdfs:label>id</rdfs:label> | ||
</owl:AnnotationProperty> | ||
|
||
|
||
|
||
<!-- http://www.geneontology.org/formats/oboInOwl#is_metadata_tag --> | ||
|
||
<owl:AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#is_metadata_tag"/> | ||
|
||
|
||
|
||
<!-- http://www.w3.org/2004/02/skos/core#exactMatch --> | ||
|
||
<owl:AnnotationProperty rdf:about="http://www.w3.org/2004/02/skos/core#exactMatch"> | ||
<oboInOwl:id>skos:exactMatch</oboInOwl:id> | ||
<oboInOwl:is_metadata_tag rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</oboInOwl:is_metadata_tag> | ||
</owl:AnnotationProperty> | ||
|
||
|
||
|
||
<!-- | ||
/////////////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Classes | ||
// | ||
/////////////////////////////////////////////////////////////////////////////////////// | ||
--> | ||
|
||
|
||
|
||
|
||
<!-- http://purl.obolibrary.org/obo/X_1 --> | ||
|
||
<owl:Class rdf:about="http://purl.obolibrary.org/obo/X_1"> | ||
<oboInOwl:hasDbXref>Y:1</oboInOwl:hasDbXref> | ||
<oboInOwl:id>X:1</oboInOwl:id> | ||
<skos:exactMatch rdf:resource="http://purl.obolibrary.org/obo/Y_1"/> | ||
</owl:Class> | ||
</rdf:RDF> | ||
|
||
|
||
|
||
<!-- Generated by the OWL API (version 4.5.26) https://github.com/owlcs/owlapi --> | ||
|
5 changes: 5 additions & 0 deletions
5
tests/input/obo-compliance/skos-xref-duplicate/skos-xref-duplicate.meta.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: skos-xref-duplicate | ||
name: skos-xref-duplicate | ||
description: Using both xref and skos relationship (annotation) to communicate the same mapping | ||
seeAlso: https://github.com/geneontology/obographs/issues/102 | ||
unstable: true |
13 changes: 13 additions & 0 deletions
13
tests/input/obo-compliance/skos-xref-duplicate/skos-xref-duplicate.obo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
format-version: 1.4 | ||
ontology: skos-xref-duplicate | ||
idspace: skos http://www.w3.org/2004/02/skos/core# | ||
|
||
[Term] | ||
id: X:1 | ||
relationship: skos:exactMatch Y:1 | ||
xref: Y:1 | ||
|
||
[Typedef] | ||
id: skos:exactMatch | ||
is_metadata_tag: true | ||
|