Skip to content

Commit

Permalink
added version info to ontology
Browse files Browse the repository at this point in the history
  • Loading branch information
poldrack committed Sep 5, 2011
1 parent 1717517 commit aebc31a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions create_owl.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
## ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

import pickle
versionString='0.2.2'

def make_sentence_case(s):
""" make sentence case, excluding acronyms in parens and keeping proper nouns"""
Expand Down Expand Up @@ -76,6 +77,8 @@ def make_sentence_case(s):
for a in additional_namespaces:
rdf_preamble=rdf_preamble.replace('> ','\n\t%s> '%a)

rdf_preamble=rdf_preamble+'\n<owl:Ontology rdf:about="http://www.cognitiveatlas.org/ontology/cogat.owl">\n\t<owl:versionInfo>%s</owl:versionInfo></owl:Ontology>\n\n'%versionString

rdf_entities=['dc "http://purl.org/dc/elements/1.1/"','ro "http://www.obofoundry.org/ro/ro.owl#"','cogat "http://www.cognitiveatlas.org/ontology/cogat.owl#"','rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#"','skos "http://www.w3.org/2004/02/skos/core#"','rdfs "http://www.w3.org/2000/01/rdf-schema#"','span "http://www.ifomis.org/bfo/1.1/span#"','cogpo "http://www.cogpo.org/ontologies/working/CogPOver2011.owl#"']

entities='<!DOCTYPE rdf:RDF [\n'
Expand Down
4 changes: 4 additions & 0 deletions ontology/cogat.owl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:span="http://www.ifomis.org/bfo/1.1/span#"
xmlns:cogpo="http://www.cogpo.org/ontologies/working/CogPOver2011.owl#">
<owl:Ontology rdf:about="http://www.cognitiveatlas.org/ontology/cogat.owl">
<owl:versionInfo>0.2.2</owl:versionInfo></owl:Ontology>




<!--
Expand Down

0 comments on commit aebc31a

Please sign in to comment.