From waterbug at step.nasa.gov Thu Jun 15 05:03:38 2006 From: waterbug at step.nasa.gov (waterbug CVS) Date: Fri Jun 16 16:01:43 2006 Subject: [pangalactic-commits] Add dummy space mission ontology. Message-ID: <200606150903.k5F93cqf023791@ned.gsfc.nasa.gov> Modified files: PanGalactic/pangalactic/node/kb/space_mission.owl None 1.1 Log message: Add dummy space mission ontology. From waterbug at step.nasa.gov Thu Jun 15 11:55:45 2006 From: waterbug at step.nasa.gov (waterbug CVS) Date: Fri Jun 16 16:01:53 2006 Subject: [pangalactic-commits] Sync pgef.owl on beeblebrox with the new (1.24) one from pangalactic. Message-ID: <200606151555.k5FFtjba028870@ned.gsfc.nasa.gov> Modified files: PanGalactic/pangalactic/node/kb/pgef.owl 1.24 1.25 Log message: Sync pgef.owl on beeblebrox with the new (1.24) one from pangalactic. Index: PanGalactic/pangalactic/node/kb/pgef.owl diff -u PanGalactic/pangalactic/node/kb/pgef.owl:1.24 PanGalactic/pangalactic/node/kb/pgef.owl:1.25 --- PanGalactic/pangalactic/node/kb/pgef.owl:1.24 Thu Jun 15 04:57:58 2006 +++ PanGalactic/pangalactic/node/kb/pgef.owl Thu Jun 15 11:55:41 2006 @@ -229,19 +229,19 @@ Quantified Assembly Component Usage represents some number of instances or some measured quantity of a PanGalacticObject used in the assembly of another PanGalacticObject. - + + A documented collection of parts and related information. Parts Lists occur in various contexts in the product life cycle, e.g.: to document component technology research, to document candidate parts for assemblies, to document Parts used in Model development, to track Parts procurement information, to document Part stocks and inventory, etc. - A PartsListItem is a Document that is a component of a PartsList, and represents a single line or item on its parent PartsList. The PartsListItem references an Acu (a usage of one or more PanGalacticObject instances in the assembly of another PanGalacticObject). - - A documented collection of parts and related information. Parts Lists occur in various contexts in the product life cycle, e.g.: to document component technology research, to document candidate parts for assemblies, to document Parts used in Model development, to track Parts procurement information, to document Part stocks and inventory, etc. + + A PartsListItem is a Document that is a component of a PartsList, and represents a single line or item on its parent PartsList. The PartsListItem references an Acu (a usage of one or more PanGalacticObject instances in the assembly of another PanGalacticObject). @@ -709,6 +709,13 @@ + + The Identifiable entity that owns an object. + + + + From waterbug at step.nasa.gov Thu Jun 15 04:58:00 2006 From: waterbug at step.nasa.gov (waterbug CVS) Date: Fri Jun 16 16:01:53 2006 Subject: [pangalactic-commits] Fixes to pgef.owl enabled by Protege 3.2 being smarter. Message-ID: <200606150858.k5F8w07B023687@ned.gsfc.nasa.gov> Modified files: PanGalactic/pangalactic/node/kb/pgef.owl 1.23 1.24 PanGalactic/pangalactic/node/kb/pgef.pprj 1.12 None Log message: Fixes to pgef.owl enabled by Protege 3.2 being smarter. Index: PanGalactic/pangalactic/node/kb/pgef.owl diff -u PanGalactic/pangalactic/node/kb/pgef.owl:1.23 PanGalactic/pangalactic/node/kb/pgef.owl:1.24 --- PanGalactic/pangalactic/node/kb/pgef.owl:1.23 Wed Jun 14 15:25:29 2006 +++ PanGalactic/pangalactic/node/kb/pgef.owl Thu Jun 15 04:57:58 2006 @@ -4,9 +4,8 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" - xmlns:p1="file:/home/waterbug/sandbox/pangalacticsb/ontologies/pgef/pgef.owl#" - xml:base="file:/home/waterbug/sandbox/pangalacticsb/ontologies/pgef/pgef.owl"> - + xmlns="http://pangalactic.us/pgef/" + xml:base="http://pangalactic.us/pgef/"> @@ -18,10 +17,10 @@ An activity that has the purpose of producing and/or maintaining something, and which involves contributions from Persons and Organizations. - + - + @@ -94,11 +93,11 @@ + The common ancestor of all Versionable descendents of PanGalacticObject. - The common ancestor of all Versionable descendents of PanGalacticObject. @@ -140,10 +139,10 @@ - + @@ -152,11 +151,11 @@ + The name (type) of a Relationship that can be assigned to an Actor within a context. The context will typically be an Organization or a Project. A Role will typically have an associated set of privileges. - The name (type) of a Relationship that can be assigned to an Actor within a context. The context will typically be an Organization or a Project. A Role will typically have an associated set of privileges. @@ -179,12 +178,6 @@ - - - A Relationship between a Role with an Organization context and a Person. - - @@ -192,6 +185,12 @@ A well-defined and identifiable connection between PanGalacticObjects. + + + A Relationship between a Role with an Organization context and a Person. + + An Actor's access permissions to an Object will be determined by testing whether the security_mask of the Object contains the Actor's oid or the oids of any Role assignments the Actor has. - + @@ -515,9 +514,9 @@ - The CAGE type code. (From the CAGE data structure.) + @@ -529,8 +528,8 @@ - + The identifier for a screening specification that applies to a Part. @@ -592,9 +591,9 @@ - An identifier assigned by a manufacturer to a specific PhysicalPart. + @@ -620,23 +619,23 @@ + The date and time of last modification of an object. - - An integer code: 1=U.S., 2=Foreign, 3=Canada (From the CAGE data structure.) + - The Identifiable entity that last modified an object. + @@ -648,8 +647,8 @@ >A narrative about the characteristics and identifying features of an object. - + The name of the attribute within the context of which the Sequence attribute is meaningful. If the value of the Sequence Context attribute is 'role', and the value of Role is 'attachment', then Sequence is the position of this file within the set of files that have a Role of 'attachment'. @@ -658,8 +657,8 @@ A Person's middle initial or name. - + - The URI of the namespace to which an object's name belongs. + @@ -707,15 +706,8 @@ The size of a file in bytes. - - - - The Identifiable entity that owns an object. - - - + @@ -724,9 +716,16 @@ >The context within which a Role is defined. + + The Identifiable entity that owns an object. + + + + - + The identifier for a Part's 'Model', a somewhat arbitrary identifier usually specified by the manufacturer. @@ -754,8 +753,8 @@ - + The person who authorized creation of the Data Set. @@ -802,8 +801,8 @@ - + The system from which the data in a DataSet originated. @@ -853,8 +852,8 @@ The manufacturer's identifier for a Part. - + @@ -894,10 +893,10 @@ - The MIME type of the value of the 'content' attribute. (This does not imply that a Document has an intrinsic MIME type. In general, each representation of the Document will have a MIME type, and they may all be different.) + @@ -967,8 +966,8 @@ - + The identifier of the specification document that applies to a Part. @@ -990,9 +989,9 @@ + An Organization's state (if in the U.S.) or country. (From the CAGE data structure.) - - + Date (and time, if relevant) a Document was published. @@ -1063,8 +1062,8 @@ The file-like Objects (e.g., FileLinks) that constitute a Representation. - + From waterbug at step.nasa.gov Sun Jun 18 01:01:51 2006 From: waterbug at step.nasa.gov (waterbug CVS) Date: Sun Jun 18 01:01:52 2006 Subject: [pangalactic-commits] With new Protege, no need to save project (.pprj) files. Message-ID: <200606180501.k5I51p8N018442@ned.gsfc.nasa.gov> Modified files: PanGalactic/pangalactic/node/kb/pgef_meta.pprj 1.12 None Log message: With new Protege, no need to save project (.pprj) files. From waterbug at step.nasa.gov Mon Jun 26 14:50:12 2006 From: waterbug at step.nasa.gov (waterbug CVS) Date: Mon Jun 26 14:50:14 2006 Subject: [pangalactic-commits] Fix some awkward code around oids. Message-ID: <200606261850.k5QIoCix001560@ned.gsfc.nasa.gov> Modified files: PanGalactic/pangalactic/core/pgefobject.py 1.50 1.51 PanGalactic/pangalactic/utils/identity.py 1.1 1.2 Log message: Fix some awkward code around oids. Index: PanGalactic/pangalactic/core/pgefobject.py diff -u PanGalactic/pangalactic/core/pgefobject.py:1.50 PanGalactic/pangalactic/core/pgefobject.py:1.51 --- PanGalactic/pangalactic/core/pgefobject.py:1.50 Sun Jan 29 07:23:13 2006 +++ PanGalactic/pangalactic/core/pgefobject.py Mon Jun 26 14:50:10 2006 @@ -1,4 +1,4 @@ -# $Id: pgefobject.py,v 1.50 2006/01/29 12:23:13 waterbug Exp $ +# $Id: pgefobject.py,v 1.51 2006/06/26 18:50:10 waterbug Exp $ """ C{PgefObject} is the Python class that instantiates all PanGalactic "domain @@ -29,9 +29,9 @@ Note that C{PgefObject} does not (yet) implement all of these characteristics, but that is its ultimate goal. -@version: $Revision: 1.50 $ +@version: $Revision: 1.51 $ """ -__version__ = "$Revision: 1.50 $"[11:-2] +__version__ = "$Revision: 1.51 $"[11:-2] # Python from datetime import datetime @@ -151,13 +151,8 @@ # If no oid is set in the constructor, infer that we are a # brand new instance (i.e., not a clone of an existing # instance), so generate an oid and a [create,mod]_datetime. - # If a creator exists (!), use its oid; otherwise, 'local'. - creator = getattr(self, 'creator', None) - if isAString(creator): - oidbase = str(creator) - else: - oidbase = getattr(self.creator, 'oid', None) - self.oid = generateOid(oidbase) + # If self.creator is supplied, use it; otherwise, 'local'. + self.oid = generateOid(self.creator) self.create_datetime = dtstamp() self.mod_datetime = dtstamp() Index: PanGalactic/pangalactic/utils/identity.py diff -u PanGalactic/pangalactic/utils/identity.py:1.1 PanGalactic/pangalactic/utils/identity.py:1.2 --- PanGalactic/pangalactic/utils/identity.py:1.1 Sun Jun 5 15:53:44 2005 +++ PanGalactic/pangalactic/utils/identity.py Mon Jun 26 14:50:10 2006 @@ -1,17 +1,15 @@ -# $Id: identity.py,v 1.1 2005/06/05 19:53:44 waterbug Exp $ +# $Id: identity.py,v 1.2 2006/06/26 18:50:10 waterbug Exp $ """ PGEF oid generator -@version: $Revision: 1.1 $ +@version: $Revision: 1.2 $ """ -__version__ = "$Revision: 1.1 $"[11:-2] +__version__ = "$Revision: 1.2 $"[11:-2] import time -OIDBASE = "local" - -oidtime = time.time() +OIDBASE = 'local' def generateOid(oidbase=None): """ @@ -21,19 +19,12 @@ float Generated using time.time(). OK, pretty simple-minded ... but good enough for now. """ - global OIDBASE - global oidtime - - if oidbase: - OIDBASE = oidbase - - oidtime += .01 - newoid = '%s.%s' % (OIDBASE, str(oidtime)) - + base = oidbase or OIDBASE + oidtime = time.time() + newoid = '%s.%s' % (base, str(oidtime)) return newoid - def setOidBase(oidbase): global OIDBASE OIDBASE = oidbase From waterbug at step.nasa.gov Mon Jun 26 14:59:35 2006 From: waterbug at step.nasa.gov (waterbug CVS) Date: Mon Jun 26 14:59:37 2006 Subject: [pangalactic-commits] Even better. Message-ID: <200606261859.k5QIxZgx001581@ned.gsfc.nasa.gov> Modified files: PanGalactic/pangalactic/utils/identity.py 1.2 1.3 Log message: Even better. Index: PanGalactic/pangalactic/utils/identity.py diff -u PanGalactic/pangalactic/utils/identity.py:1.2 PanGalactic/pangalactic/utils/identity.py:1.3 --- PanGalactic/pangalactic/utils/identity.py:1.2 Mon Jun 26 14:50:10 2006 +++ PanGalactic/pangalactic/utils/identity.py Mon Jun 26 14:59:33 2006 @@ -1,11 +1,11 @@ -# $Id: identity.py,v 1.2 2006/06/26 18:50:10 waterbug Exp $ +# $Id: identity.py,v 1.3 2006/06/26 18:59:33 waterbug Exp $ """ PGEF oid generator -@version: $Revision: 1.2 $ +@version: $Revision: 1.3 $ """ -__version__ = "$Revision: 1.2 $"[11:-2] +__version__ = "$Revision: 1.3 $"[11:-2] import time @@ -20,10 +20,7 @@ ... but good enough for now. """ global OIDBASE - base = oidbase or OIDBASE - oidtime = time.time() - newoid = '%s.%s' % (base, str(oidtime)) - return newoid + return '.'.join([oidbase or OIDBASE, str(time.time())]) def setOidBase(oidbase): global OIDBASE