bio4j / el-grafo

GSoC 2014 project - D3-based Bio4j data model visualization
4 stars 3 forks source link

interacting with the JSON GO model service #15

Closed carmen-tm closed 10 years ago

laughedelic commented 10 years ago

Follow these steps to run the service-server:

git clone https://github.com/bio4j/model-service.git bio4j/model-service
cd bio4j/model-service
sbt update run

now, somewhere else you can try

curl http://localhost:8080/schema/go
curl http://localhost:8080/schema/go/edgeTypes

and the first thing will give you

{
  "label" : "go",
  "propertyTypes" : [
    "id",
    "name",
    "synonyms",
    "definition",
    "comment"
  ],
  "dependencies" : [

  ],
  "vertexTypes" : [
    "GoTerm",
    "GoSlims",
    "SubOntologies"
  ],
  "edgeTypes" : [
    {
      "sourceType" : "GoTerm",
      "label" : "IsA",
      "inArity" : "many",
      "outArity" : "many",
      "targetType" : "GoTerm"
    },
    {
      "sourceType" : "GoTerm",
      "label" : "PartOf",
      "inArity" : "many",
      "outArity" : "many",
      "targetType" : "GoTerm"
    },
    {
      "sourceType" : "GoTerm",
      "label" : "HasPartOf",
      "inArity" : "many",
      "outArity" : "many",
      "targetType" : "GoTerm"
    },
    {
      "sourceType" : "GoTerm",
      "label" : "Regulates",
      "inArity" : "many",
      "outArity" : "many",
      "targetType" : "GoTerm"
    },
    {
      "sourceType" : "GoTerm",
      "label" : "PositivelyRegulates",
      "inArity" : "many",
      "outArity" : "many",
      "targetType" : "GoTerm"
    },
    {
      "sourceType" : "GoTerm",
      "label" : "NegativelyRegulates",
      "inArity" : "many",
      "outArity" : "many",
      "targetType" : "GoTerm"
    },
    {
      "sourceType" : "GoTerm",
      "label" : "SubOntology",
      "inArity" : "many",
      "outArity" : "one",
      "targetType" : "SubOntologies"
    },
    {
      "sourceType" : "GoTerm",
      "label" : "GoSlim",
      "inArity" : "many",
      "outArity" : "many",
      "targetType" : "GoSlims"
    }
  ]
}
carmen-tm commented 10 years ago

hi @laughedelic, I'm running the service-server but the last command after cloning sbt update run give me an error: zsh: command not found: sbt. thanks!

laughedelic commented 10 years ago

@carmen-ooo ok, let's install sbt then :wink:

laughedelic commented 10 years ago

Sorry @carmen-ooo, Are you sure that you want to close this without merging? In general, it's better to merge everything that is not like a "dead-end" branch. So that in the end you have the full history of all your trials and experiments (+ all the time tracker notes). If you need any help with managing this on the git level — tell me, I will help.

carmen-tm commented 10 years ago

@laughedelic yep sorry. if u could give me a quick hand tomorrow with this would be great. i had some issues with this. thanks

laughedelic commented 10 years ago

no problem, we'll resolve it tomorrow :ok_hand: