...
 
Commits (9)
[models]
dir = /Users/michele.pasin/.ontospy/models/
ontospy (0~20190225~dfsg1-1) unstable; urgency=medium
[ upstream ]
* New release.
[ Jonas Smedegaard ]
* Update copyright info: Drop superfluous alternate Source URL.
* Drop patch 1002 adopted upstream.
-- Jonas Smedegaard <dr@jones.dk> Tue, 26 Feb 2019 13:06:35 +0100
ontospy (0~20190107~dfsg1-5) unstable; urgency=medium
* (Build-)depend on libjs-chart.js (not libjs-chartjs).
Adapt patch 2004 and symbolic links.
-- Jonas Smedegaard <dr@jones.dk> Sat, 23 Feb 2019 11:49:50 +0100
ontospy (0~20190107~dfsg1-4) unstable; urgency=medium
* Update watch file:
......
......@@ -11,7 +11,7 @@ Build-Depends:
libfile-homedir-perl <!nocheck>,
libjs-bootstrap <!nocheck>,
libjs-bootswatch <!nocheck>,
libjs-chartjs <!nocheck>,
libjs-chart.js <!nocheck>,
libjs-d3 <!nocheck>,
libjs-jquery <!nocheck>,
libtest-command-simple-perl <!nocheck>,
......@@ -61,7 +61,7 @@ Architecture: all
Depends:
libjs-bootstrap,
libjs-bootswatch,
libjs-chartjs,
libjs-chart.js,
libjs-d3,
libjs-jquery,
${misc:Depends},
......
......@@ -2,7 +2,7 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: OntoSpy
Upstream-Contact: https://github.com/lambdamusic/Ontospy/issues
Source: https://github.com/lambdamusic/Ontospy
git://github.com/lambdamusic/Ontospy
.
Repackaged, excluding non-DFSG free files, embedded code copies,
an excessively large logfile,
and difficult to scan zip archives.
......
......@@ -8,6 +8,7 @@ Files: ERROR.txt
MANIFEST.in
README.md
TODO.md
config.ini
debian/compat
debian/control
debian/gbp.conf
......@@ -15,7 +16,6 @@ Files: ERROR.txt
debian/ontospy.install
debian/ontospy.manpages
debian/patches/1001_fix_syntax_error.patch
debian/patches/1002_fix_error_msg.patch
debian/patches/1003_template_paths.patch
debian/patches/1004_library_paths.patch
debian/patches/2001_privacy.patch
......
Description: Fix error message suggesting bootstrap command
Author: Jonas Smedegaard <dr@jones.dk>
Bug: https://github.com/lambdamusic/Ontospy/issues/78
Last-Update: 2019-02-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/ontospy/core/actions.py
+++ b/ontospy/core/actions.py
@@ -162,7 +162,7 @@
# printDebug("------------------", 'comment')
if not options:
printDebug(
- "Your local library is empty. Use 'ontospy --bootstrap' to add some ontologies to it."
+ "Your local library is empty. Use 'ontospy lib --bootstrap' to add some ontologies to it."
)
return
else:
......@@ -93,7 +93,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+ "libs/bootswatch",
+ "libs/bootstrap",
+ "libs/jquery",
+ "libs/chartjs"
+ "libs/chart.js"
]
self.theme = validate_theme(theme)
1001_fix_syntax_error.patch
1002_fix_error_msg.patch
1003_template_paths.patch
1004_library_paths.patch
2001_privacy.patch
/usr/share/javascript/bootstrap /usr/lib/python3/dist-packages/ontospy/ontodocs/media/static/libs/bootstrap
/usr/share/javascript/bootswatch /usr/lib/python3/dist-packages/ontospy/ontodocs/media/static/libs/bootswatch
/usr/share/javascript/chartjs /usr/lib/python3/dist-packages/ontospy/ontodocs/media/static/libs/chartjs
/usr/share/javascript/chart.js /usr/lib/python3/dist-packages/ontospy/ontodocs/media/static/libs/chart.js
/usr/share/javascript/d3 /usr/lib/python3/dist-packages/ontospy/ontodocs/media/static/libs/d3
/usr/share/javascript/jquery /usr/lib/python3/dist-packages/ontospy/ontodocs/media/static/libs/jquery
......@@ -8,7 +8,7 @@
# note: 1.8 major update with ontodocs split
##################
__version__ = "1.9.8.1" # Pypi latest: https://pypi.org/project/ontospy/
__version__ = "1.9.8.2" # Pypi latest: https://pypi.org/project/ontospy/
__copyright__ = "CopyRight (C) 2015-2018 by Michele Pasin"
__license__ = "GNU"
......
......@@ -43,17 +43,6 @@ from .core.ontospy import Ontospy
from .core.manager import *
from .core.utils import *
SHELL_EXAMPLES = """
#### LEGACY
Quick Examples:
> ontospy ~/Desktop/mymodel.rdf # ==> inspect a local RDF file
> ontospy lib -s # ==> list ontologies available in the local library
> ontospy lib --save http://xmlns.com/foaf/spec/ # ==> download FOAF vocabulary and save it in library
More info: <http://lambdamusic.github.io/Ontospy/>
------------
"""
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
......@@ -371,7 +360,7 @@ def lib(ctx,
if bootstrap:
DONE_ACTION = True
action_bootstrap(verbose)
printDebug("Tip: you can now load an ontology by typing `ontospy -l`",
printDebug("Tip: you can now load an ontology by typing `ontospy lib -s`",
"important")
# raise SystemExit(1)
......@@ -383,9 +372,6 @@ def lib(ctx,
if not filepath:
printDebug("Please specify a new directory for the local library.",
'important')
printDebug(
"E.g. 'ontospy library --update /Users/john/ontologies'",
'tip')
sys.exit(0)
else:
_location = filepath[0]
......
......@@ -162,7 +162,7 @@ def action_listlocal(all_details=True):
# printDebug("------------------", 'comment')
if not options:
printDebug(
"Your local library is empty. Use 'ontospy --bootstrap' to add some ontologies to it."
"Your local library is empty. Use 'ontospy lib --bootstrap' to add some ontologies to it."
)
return
else:
......
......@@ -92,15 +92,16 @@ def get_localontologies(pattern=""):
"returns a list of file names in the ontologies folder (not the full path)"
res = []
ONTOSPY_LOCAL_MODELS = get_home_location()
if os.path.exists(ONTOSPY_LOCAL_MODELS):
for f in os.listdir(ONTOSPY_LOCAL_MODELS):
if os.path.isfile(os.path.join(ONTOSPY_LOCAL_MODELS, f)):
if not f.startswith(".") and not f.endswith(".pickle"):
if not pattern:
if not os.path.exists(ONTOSPY_LOCAL_MODELS):
get_or_create_home_repo()
for f in os.listdir(ONTOSPY_LOCAL_MODELS):
if os.path.isfile(os.path.join(ONTOSPY_LOCAL_MODELS, f)):
if not f.startswith(".") and not f.endswith(".pickle"):
if not pattern:
res += [f]
else:
if pattern in f:
res += [f]
else:
if pattern in f:
res += [f]
return res
......