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

Removed COLUMN and DATA_ITEMS. Also renamed TABLE and ROW to LOOP and PACKET, respectively. #30

Merged
merged 1 commit into from
Apr 27, 2021
Merged
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
97 changes: 41 additions & 56 deletions ontology/cif_top.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ skos:prefLabel rdf:type owl:AnnotationProperty ;
rdfs:subClassOf :DDL_CONCEPT ;
rdfs:comment """A superclass of CIF categories used to categorize data items.

Only data items belonging to the same category can be placed in the same table."""@en ;
Only data items belonging to the same category can be placed in the same loop."""@en ;
skos:altLabel "CIF_CATEGORIZED"@en ;
skos:prefLabel "CATEGORY"@en .

Expand All @@ -210,22 +210,12 @@ Only data items belonging to the same category can be placed in the same table."
rdfs:subClassOf :CIF ,
[ rdf:type owl:Restriction ;
owl:onProperty :hasSpatialDirectPart ;
owl:someValuesFrom :TABLE
owl:someValuesFrom :LOOP
] ;
rdfs:comment "A class representing a data block in a CIF file."@en ;
skos:prefLabel "CIF_DATA_BLOCK"@en .


### http://emmo.info/domain-crystallography/cif_top#COLUMN
:COLUMN rdf:type owl:Class ;
rdfs:subClassOf :DATA_ITEMS ,
[ rdf:type owl:Restriction ;
owl:onProperty :hasSpatialDirectPart ;
owl:someValuesFrom :DATA_VALUE
] ;
skos:prefLabel "COLUMN"@en .


### http://emmo.info/domain-crystallography/cif_top#Code
:Code rdf:type owl:Class ;
rdfs:subClassOf :Single ,
Expand Down Expand Up @@ -255,13 +245,6 @@ Only data items belonging to the same category can be placed in the same table."
skos:prefLabel "Complex"@en .


### http://emmo.info/domain-crystallography/cif_top#DATA_ITEMS
:DATA_ITEMS rdf:type owl:Class ;
rdfs:subClassOf :DDL_CONCEPT ;
rdfs:comment "A row, column or function in a table."@en ;
skos:prefLabel "DATA_ITEMS"@en .


### http://emmo.info/domain-crystallography/cif_top#DATA_VALUE
:DATA_VALUE rdf:type owl:Class ;
rdfs:subClassOf :DDL_CONCEPT ;
Expand Down Expand Up @@ -332,6 +315,36 @@ The text string itself consists of zero or more non-negative integers separated
skos:prefLabel "Integer"@en .


### http://emmo.info/domain-crystallography/cif_top#LOOP
:LOOP rdf:type owl:Class ;
rdfs:subClassOf :DDL_CONCEPT ,
[ rdf:type owl:Restriction ;
owl:onProperty :hasSpatialDirectPart ;
owl:someValuesFrom :PACKET
] ;
:example """Syntactically a table instance in a CIF file may be written as

loop_
_space_group_symop_id
_space_group_symop_operation_xyz
1 x,y,z
2 -x,-y,-z
3 -x,1/2+y,1/2-z
4 x,1/2-y,1/2+z

but the actual TABLE individual is just the data rows:

1 x,y,z
2 -x,-y,-z
3 -x,1/2+y,1/2-z
4 x,1/2-y,1/2+z"""@en ;
rdfs:comment """A loop can be understood as a table in a relational database.

Loops has packets as spatial direct parts."""@en ,
"The syntax of individual tables starts with the 'loop_' keyword followed by the name of the data items and then the actual data."@en ;
skos:prefLabel "LOOP"@en .


### http://emmo.info/domain-crystallography/cif_top#List
:List rdf:type owl:Class ;
rdfs:subClassOf :DATA_VALUE ,
Expand Down Expand Up @@ -361,15 +374,15 @@ The text string itself consists of zero or more non-negative integers separated
skos:prefLabel "Name"@en .


### http://emmo.info/domain-crystallography/cif_top#ROW
:ROW rdf:type owl:Class ;
rdfs:subClassOf :DATA_ITEMS ,
[ rdf:type owl:Restriction ;
owl:onProperty :hasSpatialDirectPart ;
owl:someValuesFrom :DATA_VALUE
] ;
rdfs:comment "Represents a single row in a table with data items as direct parts."@en ;
skos:prefLabel "ROW"@en .
### http://emmo.info/domain-crystallography/cif_top#PACKET
:PACKET rdf:type owl:Class ;
rdfs:subClassOf :DDL_CONCEPT ,
[ rdf:type owl:Restriction ;
owl:onProperty :hasSpatialDirectPart ;
owl:someValuesFrom :DATA_VALUE
] ;
rdfs:comment "A packet can be understood as a row in a relational database. A packet has data items as direct parts."@en ;
skos:prefLabel "PACKET"@en .


### http://emmo.info/domain-crystallography/cif_top#Range
Expand Down Expand Up @@ -410,34 +423,6 @@ The text string itself consists of zero or more non-negative integers separated
skos:prefLabel "Symop"@en .


### http://emmo.info/domain-crystallography/cif_top#TABLE
:TABLE rdf:type owl:Class ;
rdfs:subClassOf :DDL_CONCEPT ,
[ rdf:type owl:Restriction ;
owl:onProperty :hasSpatialDirectPart ;
owl:someValuesFrom :ROW
] ;
:example """Syntactically a table instance in a CIF file may be written as

loop_
_space_group_symop_id
_space_group_symop_operation_xyz
1 x,y,z
2 -x,-y,-z
3 -x,1/2+y,1/2-z
4 x,1/2-y,1/2+z

but the actual TABLE individual is just the data rows:

1 x,y,z
2 -x,-y,-z
3 -x,1/2+y,1/2-z
4 x,1/2-y,1/2+z"""@en ;
rdfs:comment "Represent a table with rows as spatial direct parts."@en ,
"The syntax of individual tables starts with the 'loop_' keyword followed by the name of the data items and then the actual data."@en ;
skos:prefLabel "TABLE"@en .


### http://emmo.info/domain-crystallography/cif_top#Table
:Table rdf:type owl:Class ;
rdfs:subClassOf :DATA_VALUE ,
Expand Down