Skip to content

Commit 94371ec

Browse files
committed
Merge branch 'release/1.0-SNAPSHOT'
2 parents 90dd8fc + dd81eff commit 94371ec

File tree

12 files changed

+145
-86
lines changed

12 files changed

+145
-86
lines changed

README.md

Lines changed: 38 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,42 @@
1-
# libSBOLj
2-
XML
3-
```
4-
<rdf:RDF
5-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6-
xmlns:sbol="http://sbols.org/v3#">
7-
<sbol:Sequence rdf:about="http://myseq.org/seqabc">
8-
<sbol:encoding rdf:resource="http://sbols.org/v3#iupacNucleicAcid"/>
9-
<sbol:elements>aaaatttggg</sbol:elements>
10-
<sbol:description>pTetR promoter</sbol:description>
11-
<sbol:name>pTetR</sbol:name>
12-
<sbol:displayId>pTetR</sbol:displayId>
13-
</sbol:Sequence>
14-
</rdf:RDF>
15-
```
1+
# libSBOLj3 - A Java library for the Synthetic Biology Open Language 3
2+
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.
163

17-
Turtle:
18-
```
4+
SBOL represents data using RDF graphs, which can be serialised in different formats. The libSBOLj3 library supports the following RDF formats.
5+
* RDF/XML
6+
* Turtle
7+
* N3
8+
* JSON-LD
9+
* RDF/JSON
1910

20-
@base <http://testbase.org> .
21-
@prefix sbol: <http://sbols.org/v3#> .
11+
## How to use libSBOLj3
2212

23-
<http://myseq.org/seqabc>
24-
a sbol:Sequence ;
25-
sbol:description "pTetR promoter" ;
26-
sbol:displayId "pTetR" ;
27-
sbol:elements "aaaatttggg" ;
28-
sbol:encoding sbol:iupacNucleicAcid ;
29-
sbol:name "pTetR" .
13+
### As a Maven dependency in a Maven project
14+
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.
15+
```
16+
</dependencies>
17+
...
18+
<dependency>
19+
<groupId>org.sbolstandard</groupId>
20+
<artifactId>libSBOLj3</artifactId>
21+
<version>1.0-SNAPSHOT</version>
22+
</dependency>
23+
...
24+
</dependencies>
25+
26+
<repositories>
27+
<repository>
28+
<id>oss-sonatype</id>
29+
<name>oss-sonatype</name>
30+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
31+
<snapshots>
32+
<enabled>true</enabled>
33+
</snapshots>
34+
</repository>
35+
</repositories>
3036
```
37+
38+
### As a Java dependency in a non-Maven project
39+
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.
40+
41+
## SBOL Examples
42+
[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).

libSBOLj3/output/entity/component_urn_uri/component_urn_uri.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@id" : "urn:uuid:d0accf73-2c60-11b2-80d9-acde48001122",
2+
"@id" : "urn:uuid:d1ce016f-2c60-11b2-80b5-acde48001122",
33
"@type" : "sbol:Component",
44
"name" : "TetR",
55
"type" : "SBO:0000252",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<urn:uuid:d0accf73-2c60-11b2-80d9-acde48001122> <http://sbols.org/v3#name> "TetR" .
2-
<urn:uuid:d0accf73-2c60-11b2-80d9-acde48001122> <http://sbols.org/v3#type> <https://identifiers.org/SBO:0000252> .
3-
<urn:uuid:d0accf73-2c60-11b2-80d9-acde48001122> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://sbols.org/v3#Component> .
1+
<urn:uuid:d1ce016f-2c60-11b2-80b5-acde48001122> <http://sbols.org/v3#name> "TetR" .
2+
<urn:uuid:d1ce016f-2c60-11b2-80b5-acde48001122> <http://sbols.org/v3#type> <https://identifiers.org/SBO:0000252> .
3+
<urn:uuid:d1ce016f-2c60-11b2-80b5-acde48001122> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://sbols.org/v3#Component> .

libSBOLj3/output/entity/component_urn_uri/component_urn_uri.rdf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xmlns="https://sbolstandard.org/examples/"
1111
xmlns:om="http://www.ontology-of-units-of-measure.org/resource/om-2/"
1212
xml:base="https://sbolstandard.org/examples/">
13-
<sbol:Component rdf:about="urn:uuid:d0accf73-2c60-11b2-80d9-acde48001122">
13+
<sbol:Component rdf:about="urn:uuid:d1ce016f-2c60-11b2-80b5-acde48001122">
1414
<sbol:name>TetR</sbol:name>
1515
<sbol:type rdf:resource="https://identifiers.org/SBO:0000252"/>
1616
</sbol:Component>

libSBOLj3/output/entity/component_urn_uri/component_urn_uri.rj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"urn:uuid:d0accf73-2c60-11b2-80d9-acde48001122" : {
2+
"urn:uuid:d1ce016f-2c60-11b2-80b5-acde48001122" : {
33
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type" : [ {
44
"type" : "uri" ,
55
"value" : "http://sbols.org/v3#Component"

libSBOLj3/output/entity/component_urn_uri/component_urn_uri.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@prefix prov: <http://www.w3.org/ns/prov#> .
1010
@prefix om: <http://www.ontology-of-units-of-measure.org/resource/om-2/> .
1111

12-
<urn:uuid:d0accf73-2c60-11b2-80d9-acde48001122>
12+
<urn:uuid:d1ce016f-2c60-11b2-80b5-acde48001122>
1313
a sbol:Component ;
1414
sbol:name "TetR" ;
1515
sbol:type SBO:0000252 .

libSBOLj3/output/provenance_entity/activity/activity.jsonld

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
"displayId" : "codon_optimization_activity",
2727
"name" : "Codon optimization activity",
2828
"type" : "sbol:design",
29-
"endedAtTime" : "2020-08-30T17:16:29.495Z",
29+
"endedAtTime" : "2020-08-30T17:48:04.765Z",
3030
"qualifiedAssociation" : "codon_optimization_activity/association",
3131
"qualifiedUsage" : [ "codon_optimization_activity/optimised_usage", "codon_optimization_activity/source_usage" ],
32-
"startedAtTime" : "2019-07-29T17:16:29.495Z"
32+
"startedAtTime" : "2019-07-29T17:48:04.765Z"
3333
}, {
3434
"@id" : "codon_optimization_activity/association",
3535
"@type" : "prov:Association",
@@ -112,15 +112,15 @@
112112
"@id" : "http://www.w3.org/ns/prov#qualifiedAssociation",
113113
"@type" : "@id"
114114
},
115-
"endedAtTime" : {
116-
"@id" : "http://www.w3.org/ns/prov#endedAtTime"
115+
"startedAtTime" : {
116+
"@id" : "http://www.w3.org/ns/prov#startedAtTime"
117117
},
118118
"qualifiedUsage" : {
119119
"@id" : "http://www.w3.org/ns/prov#qualifiedUsage",
120120
"@type" : "@id"
121121
},
122-
"startedAtTime" : {
123-
"@id" : "http://www.w3.org/ns/prov#startedAtTime"
122+
"endedAtTime" : {
123+
"@id" : "http://www.w3.org/ns/prov#endedAtTime"
124124
},
125125
"@vocab" : "https://sbolstandard.org/examples/",
126126
"SBO" : "https://identifiers.org/SBO:",

libSBOLj3/output/provenance_entity/activity/activity.nt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
<https://sbolstandard.org/examples/CodonOptimisationProtocol> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/prov#Plan> .
4040
<https://sbolstandard.org/examples/codon_optimization_activity> <http://sbols.org/v3#type> <http://sbols.org/v3#design> .
4141
<https://sbolstandard.org/examples/codon_optimization_activity> <http://www.w3.org/ns/prov#qualifiedAssociation> <https://sbolstandard.org/examples/codon_optimization_activity/association> .
42-
<https://sbolstandard.org/examples/codon_optimization_activity> <http://www.w3.org/ns/prov#endedAtTime> "2020-08-30T17:16:29.495Z" .
42+
<https://sbolstandard.org/examples/codon_optimization_activity> <http://www.w3.org/ns/prov#startedAtTime> "2019-07-29T17:48:04.765Z" .
4343
<https://sbolstandard.org/examples/codon_optimization_activity> <http://www.w3.org/ns/prov#qualifiedUsage> <https://sbolstandard.org/examples/codon_optimization_activity/optimised_usage> .
4444
<https://sbolstandard.org/examples/codon_optimization_activity> <http://sbols.org/v3#name> "Codon optimization activity" .
4545
<https://sbolstandard.org/examples/codon_optimization_activity> <http://sbols.org/v3#description> "An activity that is used to optimise codons" .
4646
<https://sbolstandard.org/examples/codon_optimization_activity> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/prov#Activity> .
4747
<https://sbolstandard.org/examples/codon_optimization_activity> <http://sbols.org/v3#displayId> "codon_optimization_activity" .
48-
<https://sbolstandard.org/examples/codon_optimization_activity> <http://www.w3.org/ns/prov#startedAtTime> "2019-07-29T17:16:29.495Z" .
48+
<https://sbolstandard.org/examples/codon_optimization_activity> <http://www.w3.org/ns/prov#endedAtTime> "2020-08-30T17:48:04.765Z" .
4949
<https://sbolstandard.org/examples/codon_optimization_activity> <http://www.w3.org/ns/prov#qualifiedUsage> <https://sbolstandard.org/examples/codon_optimization_activity/source_usage> .

libSBOLj3/output/provenance_entity/activity/activity.rdf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<sbol:displayId>association</sbol:displayId>
5656
</prov:Association>
5757
</prov:qualifiedAssociation>
58-
<prov:endedAtTime>2020-08-30T17:16:29.495Z</prov:endedAtTime>
58+
<prov:startedAtTime>2019-07-29T17:48:04.765Z</prov:startedAtTime>
5959
<prov:qualifiedUsage>
6060
<prov:Usage rdf:about="codon_optimization_activity/optimised_usage">
6161
<prov:hadRole rdf:resource="https://identifiers.org/SBO:0000011"/>
@@ -66,7 +66,7 @@
6666
<sbol:name>Codon optimization activity</sbol:name>
6767
<sbol:description>An activity that is used to optimise codons</sbol:description>
6868
<sbol:displayId>codon_optimization_activity</sbol:displayId>
69-
<prov:startedAtTime>2019-07-29T17:16:29.495Z</prov:startedAtTime>
69+
<prov:endedAtTime>2020-08-30T17:48:04.765Z</prov:endedAtTime>
7070
<prov:qualifiedUsage>
7171
<prov:Usage rdf:about="codon_optimization_activity/source_usage">
7272
<prov:hadRole rdf:resource="https://identifiers.org/SBO:0000645"/>

libSBOLj3/output/provenance_entity/activity/activity.rj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,19 +165,19 @@
165165
] ,
166166
"http://www.w3.org/ns/prov#endedAtTime" : [ {
167167
"type" : "literal" ,
168-
"value" : "2020-08-30T17:16:29.495Z"
168+
"value" : "2020-08-30T17:48:04.765Z"
169+
}
170+
] ,
171+
"http://www.w3.org/ns/prov#startedAtTime" : [ {
172+
"type" : "literal" ,
173+
"value" : "2019-07-29T17:48:04.765Z"
169174
}
170175
] ,
171176
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type" : [ {
172177
"type" : "uri" ,
173178
"value" : "http://www.w3.org/ns/prov#Activity"
174179
}
175180
] ,
176-
"http://www.w3.org/ns/prov#startedAtTime" : [ {
177-
"type" : "literal" ,
178-
"value" : "2019-07-29T17:16:29.495Z"
179-
}
180-
] ,
181181
"http://sbols.org/v3#name" : [ {
182182
"type" : "literal" ,
183183
"value" : "Codon optimization activity"

0 commit comments

Comments
 (0)