Skip to content

Commit

Permalink
update visualize section
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jun 18, 2024
1 parent 9bb9d90 commit 5a21683
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions docs/how-to/visualize.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Visualize

If you want to visualize the protocol or the activity you have created,
you can use the [reproschema-ui](https://github.com/ReproNim/reproschema-ui) to preview it.

If you want to see what the assessment that are already supported by the ReproSchema would look like using our ReproSchema user-interface, you can visualize them directly on [schema.repronim.org](https://schema.repronim.org/rl).
If you want to visualize the graph represented by the JSON-LD file,
we explain how to do this in [From JSON to JSON-LD](../FAQ.md#from-json-to-json-ld).

If you just want to view a protocol or activity you are developing using the `reproschema-ui`,
you can pass the URL of the schema to the `url` query parameter like this:
If you want to visualize the protocol or the activity you have created as a web form,
you can use the [reproschema-ui](https://github.com/ReproNim/reproschema-ui) to preview it.
To do so you can pass the URL to your protocol or activity as a query
to the [reproschema-ui app](https://www.repronim.org/reproschema-ui/)

```https://schema.repronim.org/ui/#/?url=url-to-your-schema```
```https://www.repronim.org/reproschema-ui/#/?url=url-to-your-schema```

If you are hosting a schema on github, make sure that you are passing the URL of the **raw** content of the schema.
For example, our demo protocol can be accessed at this URL:
Expand All @@ -20,5 +20,7 @@ once you have opened that page on github that will open this URL:

[https://raw.githubusercontent.com/ReproNim/reproschema-demo-protocol/7ed1ae49279f75acdd57380fff1f8aaff2c7b511/reproschema_demo_protocol/reproschema_demo_protocol_schema](https://raw.githubusercontent.com/ReproNim/reproschema-demo-protocol/7ed1ae49279f75acdd57380fff1f8aaff2c7b511/reproschema_demo_protocol/reproschema_demo_protocol_schema).

If you want to visualize the graph represented by the JSON-LD file,
we explain how to do this in [From JSON to JSON-LD](#from-json-to-json-ld).
So in the end the URL to preview this protocol as a web form would be:

[https://www.repronim.org/reproschema-ui/#/?url=https://raw.githubusercontent.com/ReproNim/reproschema-demo-protocol/7ed1ae49279f75acdd57380fff1f8aaff2c7b511/reproschema_demo_protocol/reproschema_demo_protocol_schema](
https://www.repronim.org/reproschema-ui/#/?url=https://raw.githubusercontent.com/ReproNim/reproschema-demo-protocol/7ed1ae49279f75acdd57380fff1f8aaff2c7b511/reproschema_demo_protocol/reproschema_demo_protocol_schema)

0 comments on commit 5a21683

Please sign in to comment.