-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
145 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,42 @@ | ||
# libSBOLj | ||
XML | ||
``` | ||
<rdf:RDF | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:sbol="http://sbols.org/v3#"> | ||
<sbol:Sequence rdf:about="http://myseq.org/seqabc"> | ||
<sbol:encoding rdf:resource="http://sbols.org/v3#iupacNucleicAcid"/> | ||
<sbol:elements>aaaatttggg</sbol:elements> | ||
<sbol:description>pTetR promoter</sbol:description> | ||
<sbol:name>pTetR</sbol:name> | ||
<sbol:displayId>pTetR</sbol:displayId> | ||
</sbol:Sequence> | ||
</rdf:RDF> | ||
``` | ||
# libSBOLj3 - A Java library for the Synthetic Biology Open Language 3 | ||
The libSBOLj Java library has been developed for the [Synthetic Biology Open Language 3.0](https://sbolstandard.org/data-model-specification). The library is under development and is currently available as an alpha release. | ||
|
||
Turtle: | ||
``` | ||
SBOL represents data using RDF graphs, which can be serialised in different formats. The libSBOLj3 library supports the following RDF formats. | ||
* RDF/XML | ||
* Turtle | ||
* N3 | ||
* JSON-LD | ||
* RDF/JSON | ||
|
||
@base <http://testbase.org> . | ||
@prefix sbol: <http://sbols.org/v3#> . | ||
## How to use libSBOLj3 | ||
|
||
<http://myseq.org/seqabc> | ||
a sbol:Sequence ; | ||
sbol:description "pTetR promoter" ; | ||
sbol:displayId "pTetR" ; | ||
sbol:elements "aaaatttggg" ; | ||
sbol:encoding sbol:iupacNucleicAcid ; | ||
sbol:name "pTetR" . | ||
### As a Maven dependency in a Maven project | ||
Use this option if you are developing a Java application using [Maven](https://maven.apache.org/). Add the following libSBOLj3 dependency to your Maven applications's POM file (pom.xml). Please also make sure that you include the Nexus' Snapshots repository URL in the POM file. | ||
``` | ||
</dependencies> | ||
... | ||
<dependency> | ||
<groupId>org.sbolstandard</groupId> | ||
<artifactId>libSBOLj3</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</dependency> | ||
... | ||
</dependencies> | ||
<repositories> | ||
<repository> | ||
<id>oss-sonatype</id> | ||
<name>oss-sonatype</name> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots/</url> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</repository> | ||
</repositories> | ||
``` | ||
|
||
### As a Java dependency in a non-Maven project | ||
The libSBOLj3 library is available as a JAR file. Please download the file from the [releases page](https://github.com/goksel/libSBOLj3/tags). A single JAR file (with the "withDepencencies" suffix), which includes all the required libSBOLj3 related dependencies, is also available. | ||
|
||
## SBOL Examples | ||
[Several SBOL3 examples](https://github.com/goksel/libSBOLj3/tree/master/libSBOLj3/output) are available as part of the libSBOLj3 library. These examples have also been made available as part of the [SBOLTestSuite](https://github.com/SynBioDex/SBOLTestSuite/tree/master/SBOL3). Some of these examples have beeen explained in the recent SBOL3 paper, titled "[The Synthetic Biology Open Language (SBOL) Version 3: Simplified Data Exchange for Bioengineering]"(https://doi.org/10.3389/fbioe.2020.01009). |
2 changes: 1 addition & 1 deletion
2
libSBOLj3/output/entity/component_urn_uri/component_urn_uri.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
libSBOLj3/output/entity/component_urn_uri/component_urn_uri.nt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<urn:uuid:d0accf73-2c60-11b2-80d9-acde48001122> <http://sbols.org/v3#name> "TetR" . | ||
<urn:uuid:d0accf73-2c60-11b2-80d9-acde48001122> <http://sbols.org/v3#type> <https://identifiers.org/SBO:0000252> . | ||
<urn:uuid:d0accf73-2c60-11b2-80d9-acde48001122> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://sbols.org/v3#Component> . | ||
<urn:uuid:d1ce016f-2c60-11b2-80b5-acde48001122> <http://sbols.org/v3#name> "TetR" . | ||
<urn:uuid:d1ce016f-2c60-11b2-80b5-acde48001122> <http://sbols.org/v3#type> <https://identifiers.org/SBO:0000252> . | ||
<urn:uuid:d1ce016f-2c60-11b2-80b5-acde48001122> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://sbols.org/v3#Component> . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters