Permalink
Browse files

master trunk of gnowsys-studio

  • Loading branch information...
0 parents commit 7a4f561e851fdc7246d804c3abb6748b8a4199a6 @gnowgi committed Mar 15, 2012
Showing 2,745 changed files with 371,755 additions and 0 deletions.
Oops, something went wrong.
@@ -0,0 +1,22 @@
+include README.rst
+include LICENSE.txt
+include buildout.cfg
+include bootstrap.py
+#recursive-include docs *
+recursive-include patches *
+recursive-include gstudio/fixtures *.json
+recursive-include gstudio/locale *
+recursive-include gstudio/static *
+recursive-include gstudio/templates *.txt *.html *.xml *.js
+
+recursive-include objectapp/fixtures *.json
+recursive-include objectapp/locale *
+recursive-include objectapp/static *
+recursive-include objectapp/templates *.txt *.html *.xml *.js
+
+#prune docs/api
+#prune docs/build
+#prune docs/coverage
+prune gstudio/static/gstudio/css/.sass-cache
+prune gstudio/static/attributeapp/css/.sass-cache
+prune gstudio/static/relationapp/css/.sass-cache
@@ -0,0 +1,64 @@
+# Makefile for gstudio
+#
+# Aim to simplify development and release process
+# Be sure you have run the buildout, before using this Makefile
+
+NO_COLOR = \033[0m
+COLOR = \033[32;01m
+SUCCESS_COLOR = \033[35;01m
+
+all: kwalitee test docs clean package
+
+package:
+ @echo "$(COLOR)* Creating source package for Gstudio$(NO_COLOR)"
+ @python setup.py sdist
+
+test:
+ @echo "$(COLOR)* Launching the tests suite$(NO_COLOR)"
+ @./bin/test
+
+coverage:
+ @echo "$(COLOR)* Generating coverage report$(NO_COLOR)"
+ @./bin/cover
+
+epydoc:
+ @echo "$(COLOR)* Generating API documentation$(NO_COLOR)"
+ @export DJANGO_SETTINGS_MODULE='demo.settings' && ./bin/api
+
+sphinx:
+ @echo "$(COLOR)* Generating Sphinx documentation$(NO_COLOR)"
+ @./bin/docs
+ @cp -r ./docs/build/html ./docs/
+
+docs: coverage epydoc sphinx
+
+kwalitee:
+ @echo "$(COLOR)* Running pyflakes$(NO_COLOR)"
+ @./bin/pyflakes gstudio
+ @echo "$(COLOR)* Running pep8$(NO_COLOR)"
+ @./bin/pep8 --count --exclude=migrations gstudio
+ @echo "$(SUCCESS_COLOR)* No kwalitee errors, Congratulations ! :)$(NO_COLOR)"
+
+translations:
+ @echo "$(COLOR)* Generating english translation$(NO_COLOR)"
+ @cd gstudio && ../bin/django makemessages --extension=.html,.txt -l en
+ @echo "$(COLOR)* Pushing translation to Transifex$(NO_COLOR)"
+ @rm -rf .tox
+ @tx push -s
+ @echo "$(COLOR)* Remove english translation$(NO_COLOR)"
+ @rm -rf gstudio/locale/en/
+
+clean:
+ @echo "$(COLOR)* Removing useless files$(NO_COLOR)"
+ @find demo gstudio docs -type f \( -name "*.pyc" -o -name "\#*" -o -name "*~" \) -exec rm -f {} \;
+ @rm -f \#* *~
+ @rm -rf uploads
+ @rm -rf .tox
+
+mrproper: clean
+ @rm -rf docs/build/doctrees
+ @rm -rf docs/build/html
+ @rm -rf docs/html
+ @rm -rf docs/coverage
+ @rm -rf docs/api
+
@@ -0,0 +1,120 @@
+==================
+gstudio: Gnowledge Studio
+==================
+
+A collaborative workspace for constructing and publishing semantic
+knowledge networks and ontologies as blogs.
+
+Features taking shape
+=====================
+
+As and when a feature is tested and working it will be listed below.
+
+Nodes implemented
+=================
+
+Gstudio Components
+------------------
+
+* Metatypes
+* Object types
+* Relation types
+* Attribute types
+* System types
+* Process types
+* Attributes
+* Relations
+* Node Specification
+* Relation Specification
+* Attribute Specification
+* Union
+* Complement
+* Intersection
+
+
+Objectapp Components
+------------------
+
+* Objects
+* Systems
+* Processes
+
+Online Collaborative Platform
+=============================
+
+The application is built as a collaborative on line platform.
+
+Version Control
+---------------
+All the nodes above are also registered with django-reversion for
+version control using django-reversion.
+
+User Registration
+-----------------
+
+Basic registration using django-registration
+
+
+Features you will see soon:
+===========================
+
+* neighbourhood graphs and concept graphs
+* dynamic forms for adding attributes and relations following the
+ definition
+
+Other Semantic Web features to come
+===================================
+
+* data in RDF format
+* rdf feed to a triple store
+* sparql endpoint
+* export and import of standard knowledge representation languages: CL, OWL, XTM etc.
+
+Features adopted from Django-Blog-Zinnia
+========================================
+
+The following features are adopted from django-blog-zinnia code base
+with a lot of gratitude. Thanks to an excellent codebase of
+django-blog-zinnia, which taught us best software development
+practices as well! After reviewing each feature for the purpose of
+semantic blogging, we will retain or extend the following features.
+
+* Comments
+* `Sitemaps`_
+* Archives views
+* Related entries
+* Private entries
+* RSS or Atom Feeds
+* Tags and categories views
+* `Advanced search engine`_
+* Prepublication and expiration
+* Edition in `MarkDown`_, `Textile`_ or `reStructuredText`_
+* Widgets (Popular entries, Similar entries, ...)
+* Spam protection with `Akismet`_ or `TypePad`_
+* Admin dashboard
+* `MetaWeblog API`_
+* Ping Directories
+* Ping External links
+* `Bit.ly`_ support
+* `Twitter`_ support
+* `Gravatar`_ support
+* `Django-CMS`_ plugins
+* Collaborative work
+* Tags autocompletion
+* `Entry model extendable`_
+* Pingback/Trackback support
+* `Blogger conversion utility`_
+* `WordPress conversion utility`_
+* `WYMeditor`_, `TinyMCE`_ and `MarkItUp`_ support
+* Ready to use and extendables templates
+* `Windows Live Writer`_ compatibility
+
+Examples
+========
+
+We will soon create a sandbox site for users to play and test the features.
+
+Project Page
+============
+
+https://www.metastudio.org/groups/gstudio/overview
@@ -0,0 +1,173 @@
+
+# Copyright (c) 2011, 2012 Free Software Foundation
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+# This project incorporates work covered by the following copyright and permission notice:
+
+# Copyright (c) 2009, Julien Fache
+# All rights reserved.
+
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+# * Neither the name of the author nor the names of other
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+# OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Copyright (c) 2011, 2012 Free Software Foundation
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+from optparse import OptionParser
+
+tmpeggs = tempfile.mkdtemp()
+
+is_jython = sys.platform.startswith('java')
+
+# parsing arguments
+parser = OptionParser()
+parser.add_option("-v", "--version", dest="version",
+ help="use a specific zc.buildout version")
+parser.add_option("-d", "--distribute",
+ action="store_true", dest="distribute", default=False,
+ help="Use Distribute rather than Setuptools.")
+
+parser.add_option("-c", None, action="store", dest="config_file",
+ help=("Specify the path to the buildout configuration "
+ "file to be used."))
+
+options, args = parser.parse_args()
+
+# if -c was provided, we push it back into args for buildout' main function
+if options.config_file is not None:
+ args += ['-c', options.config_file]
+
+if options.version is not None:
+ VERSION = '==%s' % options.version
+else:
+ VERSION = ''
+
+USE_DISTRIBUTE = options.distribute
+args = args + ['bootstrap']
+
+to_reload = False
+try:
+ import pkg_resources
+ if not hasattr(pkg_resources, '_distribute'):
+ to_reload = True
+ raise ImportError
+except ImportError:
+ ez = {}
+ if USE_DISTRIBUTE:
+ exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
+ ).read() in ez
+ ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True)
+ else:
+ exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+ ).read() in ez
+ ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+ if to_reload:
+ reload(pkg_resources)
+ else:
+ import pkg_resources
+
+if sys.platform == 'win32':
+ def quote(c):
+ if ' ' in c:
+ return '"%s"' % c # work around spawn lamosity on windows
+ else:
+ return c
+else:
+ def quote (c):
+ return c
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+ws = pkg_resources.working_set
+
+if USE_DISTRIBUTE:
+ requirement = 'distribute'
+else:
+ requirement = 'setuptools'
+
+if is_jython:
+ import subprocess
+
+ assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
+ quote(tmpeggs), 'zc.buildout' + VERSION],
+ env=dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse(requirement)).location
+ ),
+ ).wait() == 0
+
+else:
+ assert os.spawnle(
+ os.P_WAIT, sys.executable, quote (sys.executable),
+ '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
+ dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse(requirement)).location
+ ),
+ ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout' + VERSION)
+import zc.buildout.buildout
+zc.buildout.buildout.main(args)
+shutil.rmtree(tmpeggs)
@@ -0,0 +1 @@
+VERSION = '2.3.5'
@@ -0,0 +1,2 @@
+from grappelli.dashboard.dashboards import *
+from grappelli.dashboard.registry import *
Oops, something went wrong.

0 comments on commit 7a4f561

Please sign in to comment.