Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ celerybeat-schedule
.venv
venv/
ENV/
share
include
bin

# pipenv generated filespip
Pipfile
Pipfile.lock

# Spyder project settings
.spyderproject
Expand All @@ -99,3 +106,6 @@ ENV/

# mypy
.mypy_cache/

#build packages
src
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ python:
- "3.6-dev" # 3.6 development branch
- "3.7-dev"
install:
- pip install -e git+https://github.com/HTTP-APIs/hydrus#egg=hydrus
- pip install -e git+https://github.com/HTTP-APIs/hydra-python-core#egg=hydra_python_core
- pip install -e .

script: python -m unittest discover
7 changes: 3 additions & 4 deletions hydra_agent/hydra_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from redisgraph import Graph, Node
import urllib.request
import json
from hydrus.hydraspec import doc_maker
import hydrus
from hydra_python_core import doc_maker, doc_writer
from graphviz import Digraph
from hydra_agent.classes_objects import ClassEndpoints,RequestError
from hydra_agent.collections_endpoint import CollectionEndpoints
Expand All @@ -21,12 +20,12 @@ def get_apistructure(self,entrypoint_node, api_doc):
for support_property in api_doc.entrypoint.entrypoint.supportedProperty:
if isinstance(
support_property,
hydrus.hydraspec.doc_writer.EntryPointClass):
doc_writer.EntryPointClass):
self.class_endpoints[support_property.name] = support_property.id_

if isinstance(
support_property,
hydrus.hydraspec.doc_writer.EntryPointCollection):
doc_writer.EntryPointCollection):
self.collection_endpoints[support_property.name] = support_property.id_

if len(self.class_endpoints.keys())>0:
Expand Down
2 changes: 1 addition & 1 deletion hydra_agent/querying_mechanism.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from hydra_agent.hydra_graph import InitialGraph
import urllib.request
import json
from hydrus.hydraspec import doc_maker
from hydra_python_core import doc_maker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need both these imports. You can either import hydra_python_core and use hydra_python_core.doc_maker or import dic_maker directly. I don't see the reason to do both

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. Already fixed and re-based according to @de-sh commit.

from urllib.error import URLError, HTTPError
from hydra_agent.collections_endpoint import CollectionEndpoints
from hydra_agent.classes_objects import ClassEndpoints,RequestError
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ rdflib
rdflib-jsonld
uritemplate
httplib2
redis
redis==2.10.6
redisgraph
graphviz
-e git+https://github.com/HTTP-APIs/hydrus.git#egg=hydrus
-e git+https://github.com/HTTP-APIs/hydra-python-core.git#egg=hydra_python_core