Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supercontig features en masse #2455

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
61882dd
More project.xml options for GFF3Converter; GOTerm -> OntologyTerm
sammyjava Oct 30, 2019
8126c3c
Added Supercontig to core model.
sammyjava Oct 30, 2019
1130f76
Added supercontig and supercontigLocation to SequenceFeature.
sammyjava Oct 30, 2019
0cbaa0e
Strain.name,accession,description; Organism.description
sammyjava Nov 1, 2019
e1c45e9
Removed DEBUG output.
sammyjava Nov 1, 2019
da97c31
re-added licence handling
sammyjava Nov 1, 2019
df7a77b
Update to allow additional optional GFF params in project.xml.
sammyjava Nov 1, 2019
0ab9aaf
Revert back to GOTerm for PR.
sammyjava Nov 1, 2019
83d55a3
Removed "HACK" comment which refers to something no longer here.
sammyjava Nov 1, 2019
44e2861
Tweaked spacing for Travis.
sammyjava Nov 1, 2019
f73016f
Added Strain.identifier.
sammyjava Nov 1, 2019
f94b596
Strain.name -> Strain.identifier as key.
sammyjava Nov 1, 2019
4142ab9
Bulk commit ahead of update to 4.1.2.
sammyjava Jan 27, 2020
783b480
Updated version to 4.1.2 (even though it's not yet).
sammyjava Jan 27, 2020
52077c1
Removed conflicting files, to be restored.
sammyjava Jan 27, 2020
ab5eead
Manual replacement of conflict files from 4.1.2.
sammyjava Jan 27, 2020
8b3cc60
Merge pull request #1 from intermine/dev
sammyjava Jan 27, 2020
c4fd505
My GFF3Converter.java.
sammyjava Jan 27, 2020
d370f3f
Added methods to return taxonId and strainIdentifier.
sammyjava Mar 5, 2020
d8d2faf
Merge pull request #2 from intermine/dev
sammyjava Mar 10, 2020
3b47e61
Gotta have the Plant Ontology!
sammyjava Apr 23, 2020
a2dd303
Gotta have the plant trait ontology!
sammyjava Apr 23, 2020
4095e1d
Gotta have the soybean ontology!
sammyjava Apr 23, 2020
ea4bc83
Include DataSet.description in properties file. We need it.
sammyjava Apr 23, 2020
9ae0201
Added DataSet.description to properties file handling.
sammyjava Apr 23, 2020
3aa8eef
Added assemblyVersion, annotationVersion and ontologyAnnotations.
sammyjava Apr 23, 2020
e2c5238
Added Strain support; -FlyMine/ModMine; +DataSet.description.
sammyjava Apr 23, 2020
71ba578
Added obo.ontology.description to properties.
sammyjava Apr 23, 2020
1c15927
Removed DEBUG.
sammyjava May 7, 2020
d5b8652
Addtions of LENGTH and CONCAT to QueryExpression.
sammyjava May 7, 2020
d6646e0
Merge pull request #3 from intermine/dev
sammyjava May 19, 2020
27ed758
Ran emacs indentation. Still fails checkstyle.
sammyjava Jun 2, 2020
19d7663
Yet another ontology. Bit weird that these are standalone sources.
sammyjava Jun 2, 2020
2b4fd3e
Removed tabs.
sammyjava Jun 4, 2020
0e38958
Removed blockers for 4.2.0 upgrade. Will restore after merge.
sammyjava Jun 12, 2020
0989587
Adding new 4.2.0 files in to see if we can merge.
sammyjava Jun 12, 2020
70001c5
Merge pull request #5 from intermine/dev
sammyjava Jun 12, 2020
1b16ac8
Updated from 4.2.0 to sammyjava mods.
sammyjava Jun 12, 2020
11ef0c1
Merge pull request #6 from intermine/dev
sammyjava Jun 23, 2020
7b659e2
Additional parameter.
sammyjava Jun 23, 2020
b3c5a30
Yank the custom obo sources for addition of new generic obo source.
sammyjava Jun 25, 2020
628fb1c
Adding in obo since PR may take a while.
sammyjava Jun 25, 2020
8e5f6f7
Update for new obo source.
sammyjava Jun 25, 2020
0166fdf
Plugin update for obo source with sammyjava mods.
sammyjava Jun 25, 2020
c65eac6
Use generic obo source now.
sammyjava Aug 7, 2020
dd995df
Merge pull request #8 from intermine/dev
sammyjava Aug 7, 2020
12851e4
Fixed bad apostrophe.
sammyjava Aug 18, 2020
c31e491
Allow no aspects.xml file (rather than throw null pointer exception).
sammyjava Sep 1, 2020
f16fa7e
Merge pull request #9 from intermine/dev
sammyjava Sep 1, 2020
05096f2
Merge pull request #10 from intermine/dev
sammyjava Oct 8, 2020
af0b971
first commit related. see #1720
Oct 14, 2020
754b460
fixed the redirecturl. see #1720
Oct 14, 2020
bda36cd
prevent to trigger a CORS preflight which causes call google with htt…
Oct 15, 2020
665125e
Only create flanking regions that don't include gene.
sammyjava Oct 16, 2020
6e02fa7
the ws can not redirect to somewhere. see #1720
Oct 23, 2020
b126893
Add more logs. see #1720
Oct 23, 2020
f563450
merged blugenes-properties ws
Oct 28, 2020
d71cb0c
reapplied the same fix (on dev) to update google endpoints
Oct 29, 2020
f7c0bd9
fixed checkstyle #1720
Oct 29, 2020
9bd8cf7
auhtenticato will not set the redirec_uri, BG will do it #1720
Oct 29, 2020
aa47945
fixed not-result. see #2295
Oct 30, 2020
2a2f4f8
Merge pull request #11 from intermine/dev
sammyjava Nov 5, 2020
f63382d
Merge pull request #12 from danielabutano/google-auth
sammyjava Nov 16, 2020
be0ac7d
fixed checkstyle
Nov 24, 2020
2eb374b
Update to support jsonobjects queries on simple root classes (no id).
sammyjava Nov 24, 2020
50745c5
Merge pull request #1 from danielabutano/google-auth
sammyjava Nov 24, 2020
d76a427
Merge pull request #13 from legumeinfo/google-auth
sammyjava Nov 24, 2020
be96eaa
Commented out one that won't compile.
sammyjava Nov 24, 2020
309a13e
Preserve the sort order from the original query.
sammyjava Nov 24, 2020
565e7c8
Checkstyle foobar.
sammyjava Nov 25, 2020
2371605
Checkstyle is the root of all evil.
sammyjava Nov 25, 2020
c33e4dd
Tweaks from google-auth to satisfy Travis.
sammyjava Nov 25, 2020
6ff6503
Merge branch 'dev' of https://github.com/intermine/intermine into int…
sammyjava Dec 8, 2020
1e85f75
Merge branch 'intermine-dev' into dev
sammyjava Dec 8, 2020
f3484c1
More mergage.
sammyjava Dec 8, 2020
5b8cd45
More version updating.
sammyjava Dec 8, 2020
54e1564
Merge pull request #17 from intermine/dev
sammyjava Dec 22, 2020
b622b55
Stop spitting out "Processing file" lines after 10 have gone by.
sammyjava Dec 30, 2020
cc78b3c
Merge branch 'dev' of https://github.com/sammyjava/intermine into dev
sammyjava Dec 30, 2020
adca7ed
Use HTTPS for EBI.
sammyjava Jan 14, 2021
5a2bd11
Merge pull request #18 from intermine/dev
sammyjava Feb 9, 2021
8b5a82b
Upgrade hikari, because I can.
sammyjava Feb 17, 2021
fae6337
Merge pull request #19 from intermine/dev
sammyjava Feb 18, 2021
0d0baa2
IM version for merge.
sammyjava Mar 20, 2021
d01fd09
Merge pull request #20 from intermine/dev
sammyjava Mar 20, 2021
4732efd
Very minor change methinks.
sammyjava Apr 8, 2021
c9d047b
Yanked conflicting files that I haven't edited.
sammyjava Apr 15, 2021
f36bc45
Copied over from 5.0.0 to try to make merge fly.
sammyjava Apr 15, 2021
79841e3
Merge pull request #23 from intermine/dev
sammyjava Apr 15, 2021
5cf1fdb
Merge branch 'intermine:dev' into dev
sammyjava May 13, 2021
da52eed
Merge branch 'intermine:dev' into dev
sammyjava May 20, 2021
39f568d
Merge branch 'intermine:dev' into dev
sammyjava May 24, 2021
7d5747d
These updates have been PRed. Minor.
sammyjava May 26, 2021
c764f7a
Merge branch 'intermine:dev' into dev
sammyjava May 27, 2021
1d6dafe
Allow spaces in Solr facet queries; GFFRecord.getSymbols(); login.jsp
sammyjava Jun 11, 2021
d2cde9b
Merge branch 'intermine:dev' into dev
sammyjava Jun 30, 2021
e205aab
Fixed checkstyle on long line. (Already PRed in intermine.)
sammyjava Jul 15, 2021
4bb9e2c
Merge branch 'intermine:dev' into dev
sammyjava Oct 13, 2021
fc2b752
TEMP debug lines added to view on prod mines.
sammyjava Nov 3, 2021
f3b541d
More debuggery of facet problem. Back and forth.
sammyjava Nov 3, 2021
b254ad5
Removed DEBUG lines.
sammyjava Nov 4, 2021
60302ca
Whoops still had one more DEBUG section.
sammyjava Nov 5, 2021
b4bf96b
Merge branch 'intermine:dev' into dev
sammyjava Dec 14, 2021
e6de2b5
Updated log4j release.
sammyjava Dec 14, 2021
2d73060
Merge branch 'dev' of https://github.com/sammyjava/intermine into dev
sammyjava Dec 14, 2021
db34696
Merge branch 'intermine:dev' into dev
sammyjava Dec 20, 2021
0912a50
Merge pull request #1 from sammyjava/dev
sammyjava Dec 20, 2021
f92c294
5.0.5 log4j update
sammyjava Dec 22, 2021
6fca0c5
Merge pull request #2 from intermine/dev
sammyjava Dec 22, 2021
0ee36ff
Merge branch 'intermine:dev' into LIS
sammyjava Dec 27, 2021
b88413c
Line got duplicated somehow.
sammyjava Dec 27, 2021
bb7e98c
Merge branch 'intermine:dev' into LIS
sammyjava Jan 14, 2022
038adf2
LIS genomic updates moved to genomic_addition; fixed core Strain.
sammyjava Jan 27, 2022
b54add8
Strain should not have annotationVersion, assemblyVersion.
sammyjava Feb 11, 2022
a79c589
Merge branch 'intermine:dev' into LIS
sammyjava Feb 15, 2022
5de39ae
Making the jump to 5.0.6.1 to rescue CowpeaMine
sammyjava Mar 18, 2022
f216b93
Bump all gradle.properties to 5.0.6.1
sammyjava Mar 19, 2022
9a389f2
5.0.6.2!
sammyjava Apr 4, 2022
a2a351a
5.0.6.3. Dropped CDS.regions.
sammyjava Apr 26, 2022
2aca461
5.0.6.4 commit before merge in mother ship latest.
sammyjava May 17, 2022
940acf2
Merge branch 'dev' of https://github.com/intermine/intermine into int…
sammyjava May 17, 2022
5aa68f9
Merge branch 'intermine-dev' into LIS
sammyjava May 17, 2022
d677850
5.0.7.1 punch-in, no changes.
sammyjava May 17, 2022
013c288
Fixes "all the species in the genus you selected" facet bug.
sammyjava May 18, 2022
921a586
Model updates for 5.0.7.2 esp. +GeneFamilyAssignment
sammyjava Jun 7, 2022
891971b
5.0.7.2 build.
sammyjava Jun 7, 2022
a92f9c9
ProteinDomain->Annotatable; name->identifier in GF, PT, etc.
sammyjava Jun 15, 2022
fee8a87
5.0.7.3
sammyjava Jun 15, 2022
1b8689a
5.0.7.3: Protein[Hmm]Match model tweaks; +GeneFamilyTally.
sammyjava Jun 20, 2022
11bac2f
Merge branch 'intermine:dev' into LIS
sammyjava Jun 20, 2022
1440cbe
Merge branch 'dev' of https://github.com/intermine/intermine into int…
sammyjava Jul 13, 2022
1820318
Merge branch 'intermine-dev2' into LIS
sammyjava Jul 13, 2022
b0bb9cf
ExpressionSample update.
sammyjava Jul 28, 2022
d26afbf
Show position on Supercontig as well as Chromosome.
sammyjava Aug 17, 2022
abcc218
Use "latest" imjs CDN rather than hardcoded 2.2.0-beta
sammyjava Aug 17, 2022
7dbf693
Merge branch 'dev' of https://github.com/intermine/intermine into int…
sammyjava Sep 12, 2022
ce573b7
Merge branch 'intermine-merge' into LIS
sammyjava Sep 12, 2022
34b34f0
Strain update.
sammyjava Sep 13, 2022
b1d64b7
5.1.0.1 changes, maybe not done yet.
sammyjava Sep 13, 2022
fe48384
Strain update for IM core.
sammyjava Sep 13, 2022
3cbb268
+BioEntity.strain
sammyjava Sep 13, 2022
af9f87d
Merge branch 'LIS' into strain-update
sammyjava Sep 13, 2022
991bb30
Merge pull request #7 from legumeinfo/strain-update
sammyjava Sep 13, 2022
c68c07d
Latest update, maybe not final.
sammyjava Sep 13, 2022
cba859b
Added back Organism.description
sammyjava Sep 15, 2022
432b6f6
For some reason it's Intron.genes now. No idea why.
sammyjava Sep 15, 2022
88951b5
TEMP for debugging problem with jsonobject lists.
sammyjava Sep 16, 2022
606aac4
Fix for jsonobjects queries with simple object in front.
sammyjava Sep 16, 2022
9b523a8
Fixes the problem with simple objects in jsonobjects queries.
sammyjava Sep 16, 2022
e1e128f
Set simpleCellId even if not null.
sammyjava Sep 27, 2022
f9524f8
Logic update: (Re)set simpleCellId even if non-null.
sammyjava Sep 27, 2022
551c6fa
New PFAM annotation source.
sammyjava Oct 20, 2022
9ab0ca1
HTTPS URL.
sammyjava Oct 21, 2022
853962c
Added DataSet, switched DataSource to EMBL-EBI.
sammyjava Oct 21, 2022
8f06fc5
Added panther-term, changed pfam to pfam-term.
sammyjava Oct 21, 2022
f050abd
Use filename for DataSet.name; allow multiple file loads.
sammyjava Oct 24, 2022
0274583
Populate Ontology.dataSets.
sammyjava Oct 24, 2022
2f5dfdc
More 5.1.0.1 changes.
sammyjava Oct 30, 2022
de38fb6
Merge pull request #9 from legumeinfo/jsonobjects-simpleobject-fix
sammyjava Dec 1, 2022
ca9d0ed
Only setSimpleCellId if hasn't already been set.
sammyjava Dec 1, 2022
477244c
Merge pull request #10 from legumeinfo/jsonobjects-simpleobject-fix
sammyjava Dec 20, 2022
6e21853
Print LOG.warn to System.out so it's findable!
sammyjava Jan 4, 2023
718f181
5.1.0.2
sammyjava Jan 11, 2023
563506d
Somehow lost GOTerm from the model!
sammyjava Jan 26, 2023
a2785bb
Removed GOTerm - it's in the go source which got skipped in a build.
sammyjava Feb 1, 2023
dcf831d
Initial 5.1.0.3 updates.
sammyjava Mar 7, 2023
de0f4c2
Add key for Chromosome/Supercontig.primaryIdentifier!
sammyjava Apr 18, 2023
be7e1f2
GenotypingPlatform as class.
sammyjava May 9, 2023
9734fb0
Added gfa source.
sammyjava Jun 7, 2023
69d9c6d
Delete existing flanking regions first to avoid dupes.
sammyjava Jun 17, 2023
e7dde06
fasta/gfa/gff seem to be working with strain, assembly, annotation.
sammyjava Jun 18, 2023
489bf42
gfa working as a proper BioFileConverter.
sammyjava Jun 19, 2023
53b31ae
LinkageGroup, QTL identifier -> name
sammyjava Jul 1, 2023
754e13b
Do both sides of GeneFamilyAssignment. Moved into method.
sammyjava Jul 26, 2023
4a3608e
Removed geneFamilyAssignments reverse-reference (fixes bug).
sammyjava Jul 26, 2023
9c1bdb8
+SequenceFeature.ensemblName -Pathway.stableIdentifier +Trait.organism
sammyjava Oct 27, 2023
dec001c
Moved PanGeneSet and collections from lis-pangeneset.
sammyjava Oct 27, 2023
874db71
Yank some sources we aren't using that pollute the built datamodel.
sammyjava Nov 20, 2023
3fcccb5
Yank chado-db which pollutes the built data model.
sammyjava Nov 20, 2023
2de4a0d
Don't need to yank actual code, just line in settings.gradle.
sammyjava Nov 20, 2023
30f0450
Just leave out of settings.gradle.
sammyjava Nov 20, 2023
54a92f9
Only compile sources that LIS uses.
sammyjava Nov 20, 2023
7e1a1b9
Works for Chromosome and Supercontig features; no parallel.
sammyjava Nov 30, 2023
2863e6f
Merge pull request #12 from legumeinfo/transfer-sequences-supercontigs
sammyjava Nov 30, 2023
217ee12
Final serial version, mostly output cleanup, some code tidying.
sammyjava Nov 30, 2023
0aaf10d
Merge pull request #13 from legumeinfo/transfer-sequences-supercontigs
sammyjava Nov 30, 2023
a7d234a
Final housekeeping update. Fairly optimal, clean code.
sammyjava Dec 1, 2023
c225a97
Don't transfer sequences for GeneticMarker.
sammyjava Dec 1, 2023
9ae3867
Let's clean up deprecations.
sammyjava Dec 1, 2023
3383ed1
Final version methinks.
sammyjava Dec 1, 2023
ddc65da
Yanked CDSRegion.
sammyjava Dec 2, 2023
2b3a120
Cleaned up most compiler warnings.
sammyjava Dec 2, 2023
05919ec
VASTLY faster handling of features on supercontigs.
sammyjava Dec 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bio/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
subprojects {
group = 'org.intermine'
version '5.1.0'
version '5.1.0.4'

apply plugin: "java"
apply plugin: "maven"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,18 +355,18 @@ public String getSequenceOntologyRefId() {
/**
* Provides the strain item for the given strain name and organism taxonId.
* NOTE: this assumes that strain names are unique across all organisms!
* @param strainName the name of the strain
* @param strainIdentifier the ID of the strain
* @param taxonId the taxon ID of the organism to which this strain belongs
* @return the Strain Item
*/
public Item getStrainItem(String strainName, String taxonId) {
public Item getStrainItem(String strainIdentifier, String taxonId) {
Item organism = getOrganismItem(taxonId);
Item strain = strains.get(strainName);
Item strain = strains.get(strainIdentifier);
if (strain == null) {
strain = createItem("Strain");
strain.setAttribute("primaryIdentifier", strainName);
strain.setAttribute("identifier", strainIdentifier);
strain.setReference("organism", organism);
strains.put(strainName, strain);
strains.put(strainIdentifier, strain);
organism.addToCollection("strains", strain);
}
return strain;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ public abstract class BioFileConverter extends FileConverter
* @param writer the Writer used to output the resultant items
* @param model the data model
* @param dataSourceName the DataSource name
* @param dataSetTitle the DataSet title
* @param dataSetName the DataSet name
*/
public BioFileConverter (ItemWriter writer, Model model, String dataSourceName,
String dataSetTitle) {
String dataSetName, String dataSetDescription) {
super(writer, model);
String dataSource = null;
String dataSet = null;
sequenceOntologyRefId = BioConverterUtil.getOntology(this);
if (StringUtils.isNotEmpty(dataSourceName) && StringUtils.isNotEmpty(dataSetTitle)) {
if (StringUtils.isNotEmpty(dataSourceName) && StringUtils.isNotEmpty(dataSetName)) {
dataSource = getDataSource(dataSourceName);
dataSet = getDataSet(dataSetTitle, dataSource, null);
dataSet = getDataSet(dataSetName, dataSource, dataSetDescription, null);
}
setStoreHook(new BioStoreHook(model, dataSet, dataSource, sequenceOntologyRefId));
}
Expand All @@ -64,18 +64,19 @@ public BioFileConverter (ItemWriter writer, Model model, String dataSourceName,
* @param writer the Writer used to output the resultant items
* @param model the data model
* @param dataSourceName the DataSource name
* @param dataSetTitle the DataSet title
* @param dataSetName the DataSet name
* @param dataSetDescription the DataSet description
* @param licence URL pointing to licence information
*/
public BioFileConverter (ItemWriter writer, Model model, String dataSourceName,
String dataSetTitle, String licence) {
String dataSetName, String dataSetDescription, String licence) {
super(writer, model);
String dataSource = null;
String dataSet = null;
sequenceOntologyRefId = BioConverterUtil.getOntology(this);
if (StringUtils.isNotEmpty(dataSourceName) && StringUtils.isNotEmpty(dataSetTitle)) {
if (StringUtils.isNotEmpty(dataSourceName) && StringUtils.isNotEmpty(dataSetName)) {
dataSource = getDataSource(dataSourceName);
dataSet = getDataSet(dataSetTitle, dataSource, licence);
dataSet = getDataSet(dataSetName, dataSource, dataSetDescription, licence);
}
setStoreHook(new BioStoreHook(model, dataSet, dataSource, sequenceOntologyRefId));
}
Expand All @@ -85,22 +86,23 @@ public BioFileConverter (ItemWriter writer, Model model, String dataSourceName,
* @param writer the Writer used to output the resultant items
* @param model the data model
* @param dataSourceName the DataSource name
* @param dataSetTitle the DataSet title
* @param dataSetName the DataSet name
* @param dataSetDescription the DataSet description
* @param storeOntology if TRUE, store ontology as normal
* @param licence URL pointing to licence information
*/
public BioFileConverter (ItemWriter writer, Model model, String dataSourceName,
String dataSetTitle, String licence, boolean storeOntology) {
String dataSetName, String dataSetDescription, String licence, boolean storeOntology) {
super(writer, model);
String dataSource = null;
String dataSet = null;
sequenceOntologyRefId = null;
if (storeOntology) {
sequenceOntologyRefId = BioConverterUtil.getOntology(this);
}
if (StringUtils.isNotEmpty(dataSourceName) && StringUtils.isNotEmpty(dataSetTitle)) {
if (StringUtils.isNotEmpty(dataSourceName) && StringUtils.isNotEmpty(dataSetName)) {
dataSource = getDataSource(dataSourceName);
dataSet = getDataSet(dataSetTitle, dataSource, licence);
dataSet = getDataSet(dataSetName, dataSource, dataSetDescription, licence);
}
setStoreHook(new BioStoreHook(model, dataSet, dataSource, sequenceOntologyRefId));
}
Expand All @@ -127,7 +129,7 @@ public String getSequenceOntologyRefId() {
}

/**
* Return a DataSource item for the given title
* Return a DataSource item for the given name
* @param name the DataSource name
* @return the DataSource Item
*/
Expand All @@ -153,38 +155,41 @@ public String getDataSource(String name) {
/**
* Return a DataSet ref with the given details.
*
* @param title the DataSet title
* @param name the DataSet name
* @param dataSourceRefId the DataSource referenced by the the DataSet
* @return the DataSet Item
*/
public String getDataSet(String title, String dataSourceRefId) {
return getDataSet(title, dataSourceRefId, null);
public String getDataSet(String name, String dataSourceRefId) {
return getDataSet(name, dataSourceRefId, null, null);
}

/**
* Return a DataSet ref with the given details.
*
* @param title the DataSet title
* @param name the DataSet name
* @param dataSourceRefId the DataSource referenced by the the DataSet
* @param licence URL pointing to the licence for this data set
* @return the DataSet Item
*/
public String getDataSet(String title, String dataSourceRefId, String licence) {
String refId = dataSets.get(title);
public String getDataSet(String name, String dataSourceRefId, String dataSetDescription, String licence) {
String refId = dataSets.get(name);
if (refId == null) {
Item dataSet = createItem("DataSet");
dataSet.setAttribute("name", title);
dataSet.setAttribute("name", name);
if (dataSetDescription!=null) {
dataSet.setAttribute("description", dataSetDescription);
}
if (licence != null) {
dataSet.setAttribute("licence", licence);
}
dataSet.setReference("dataSource", dataSourceRefId);
try {
store(dataSet);
} catch (ObjectStoreException e) {
throw new RuntimeException("failed to store DataSet with title: " + title, e);
throw new RuntimeException("failed to store DataSet with name: " + name, e);
}
refId = dataSet.getIdentifier();
dataSets.put(title, refId);
dataSets.put(name, refId);
}
return refId;
}
Expand Down