Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

262 use hets api #1057

Merged
merged 57 commits into from
Oct 20, 2014
Merged

262 use hets api #1057

merged 57 commits into from
Oct 20, 2014

Conversation

0robustus1
Copy link
Contributor

I'm sorry, this is a huge one...

Shall fix #262. Shall also fix #1045 and #516.

I'll try to sum up some points of issue:

  • Integrate Hets-Server with rake task and invoker.
  • Add IRI-resolving for standard iri and versioned iri (with ontology_version.number)
  • Improve URI-Fetching with a GetCaller class (hopefully)
  • Add hets-instances ('Links' to hets-servers)
    • Add mechanic to choose hets-instance (rather crude should be improved later)
    • Add mechanism to retrieve hets-version and to perform a parse-call
  • Remove xml- and pp-xml-paths.
  • Let parser use an IO-Instance (or a Tempfile, which is technically not an IO)
  • Adjust tests.
  • Add rake-task to build hets-output fixtures (system call, synchronization of options/command-line-arguments shall be done later)
  • Remove dangling old hets-output fixture (with the exception of two, we should try to build them in a new way if we can)
  • Change find_with_iri to perform a like/postfix search.

What is missing?


def set_up_state
version = check_up_state
self.up = !! version

Choose a reason for hiding this comment

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

Style/SpaceAfterNot: Do not leave space between ! and its argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really a not, but a booleanifier, so it is ok ;)

@0robustus1 0robustus1 force-pushed the 262-use_hets_api branch 2 times, most recently from 2a76c23 to 3b783c9 Compare September 23, 2014 14:20
end

def fetch_pid
pid = nil
Copy link
Member

Choose a reason for hiding this comment

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

why is pid = nil needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because i would've had a hard time returning pid from the method without first initializing it.

@eugenk
Copy link
Member

eugenk commented Oct 6, 2014

👍

1 similar comment
@SGraef
Copy link
Member

SGraef commented Oct 14, 2014

👍

MIME-Router will allow to filter based on mime-accepts-header
and GroupedConstraint will allow to include multiple Constraint
in an 'and' fashion (all constraints need to be return true).
In the html-case just perform show action.
In the plain case send the ontology-file as download.
The iri link (which displays the iri of an ontology)
now actually links to the iri. And the download-link
has moved as a button next to the evaluate button.
It seems due to old fixtures we did not realize that our annotation
mechanic wasn't working properly anymore. However the problem is fixed
(we can't rely on entity-uris in angle brackets anymore) and the spec
has been updated for the hets-api.
This includes a rather crude fix to allow the hets-api stubbing
to occur for multiple files by checkinf for part of their filename.
This should work, but we should take care when creating a test which
needs this behaviour.
This spec needs stubbing based on the specific commit,
as there are two commits to the same file. I currently
do not know how to test this, this is why the test is marked
as skipped/pending.
This task will also create the fixture-files.
In versioned iris the normal iri route is prefixed
by a ref/:version_number in order to fetch the state of
a specific version of that ontology-(member).
This should allow iri-finding with ignoring the
hostname-schema prefix. It is not perfect, but it'll
work until we've change the iri-storing system.
In order to be capable to process multiple commits
of the same ontology at once, we'll need to use the
versioned iri.
This is to circumvent development problems
with the hets-api.
Also fix problems regarding the mass-commiting (for each it-block) into
the factory-repository at least in this spec. We need to find a more
general solution.
- Use no spaces between content and Hash-braces
- Set Collection Methods correctly
- Deactivate snake-case check because it is erroneous.
In order to prevent problems call basepath and path on
the version if possible.
As per eugens [comment][1] this remove the after-block,
as repository is now done via a *global* after-hook in
the spec-helper.

[1]: b606786#commitcomment-7992278
0robustus1 added a commit that referenced this pull request Oct 20, 2014
@0robustus1 0robustus1 merged commit a5d7652 into staging Oct 20, 2014
@0robustus1 0robustus1 deleted the 262-use_hets_api branch October 20, 2014 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

in graph view, URLs for nodes are not correct Use HTTP interface of hets, not shell-spawning.
4 participants