Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Adding JS and Java bindings. #66

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Adding JS and Java bindings. #66

wants to merge 14 commits into from

Conversation

antoniogarrote
Copy link
Contributor

@antoniogarrote antoniogarrote commented May 4, 2017

First take at the Object Oriented interface in the Java version.

The programming guide is here and the javadoc here

@antoniogarrote antoniogarrote self-assigned this May 4, 2017
@antoniogarrote antoniogarrote changed the title Adding Java bindings fixes #65 Adding Java bindings. Fixes #65 May 4, 2017
@antoniogarrote antoniogarrote force-pushed the java-bindings branch 2 times, most recently from e3028b8 to af039d3 Compare May 4, 2017 21:10
@antoniogarrote antoniogarrote changed the title Adding Java bindings. Fixes #65 Adding JS and Java bindings. May 5, 2017
@antoniogarrote
Copy link
Contributor Author

Added the JS bindings with some minor improvements for the Java ones.

The programming guide is here and the javadoc here

@antoniogarrote
Copy link
Contributor Author

Missing better tests, generation of a web library and minor improvements before being good enough to close #64 and #65

@sichvoge
Copy link
Contributor

sichvoge commented May 7, 2017

Using: Java Bindings

I believe we are missing a getter in Endpoint to retrieve the parameters (URI parameters). Also missing that for APIDocumentation. For example, for the following RAML:

#%RAML 1.0
title: Test
version: '1.1'
baseUri: '{environment}.test.com/{version}'
baseUriParameters:
  environment: string

And the JSON-LD which is part of the APIDocumentation node:

"raml-http:parameter": {
      "@id": "file://#/base-uri/environment",
      "@type": [
        "raml-http:Parameter",
        "raml-doc:DomainElement"
      ],
      "raml-http:paramBinding": "domain",
      "raml-http:schema": {
        "@id": "file://#/base-uri/environment",
        "@type": [
          "raml-shapes:Scalar",
          "shacl:Shape"
        ],
        "shacl:dataType": {
          "@id": "xsd:string"
        }
      },
      "schema-org:name": "environment",
      "hydra:required": true
    }

I couldn't find any method to retrieve the baseUriParameter.

@sichvoge
Copy link
Contributor

sichvoge commented May 7, 2017

Using: Java Bindings

@antoniogarrote what are we doing to better support accessing type declarations? At the moment, I see that you can do getShape and get a string that contains a Shacl JSON string.

@sichvoge
Copy link
Contributor

sichvoge commented May 7, 2017

Thanks Antonio. Can you generate the javadoc again, please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants