public void addBasicProperties(Resource res) { // if res has a userid, don't add properties super.addBasicProperties(res); if (deterAnno.getTaxon() != null) { RdfOntologies.addProperty( res, RdfOntologies.darwinProperty("scientificName"), deterAnno.getTaxon().getScientificName()); } RdfOntologies.addProperty( res, RdfOntologies.mbankProperty("rankName"), deterAnno.getRankName()); RdfOntologies.addProperty(res, RdfOntologies.mbankProperty("prefix"), deterAnno.getPrefix()); RdfOntologies.addProperty(res, RdfOntologies.mbankProperty("suffix"), deterAnno.getSuffix()); RdfOntologies.addProperty( res, RdfOntologies.mbankProperty("typeDetAnnotation"), deterAnno.getTypeDetAnnotation()); RdfOntologies.addProperty( res, RdfOntologies.mbankProperty("sourceOfId"), deterAnno.getSourceOfId()); RdfOntologies.addProperty( res, RdfOntologies.mbankProperty("materialsUsedInId"), deterAnno.getMaterialsUsedInId()); RdfOntologies.addProperty( res, RdfOntologies.mbankProperty("resourcesused"), deterAnno.getResourcesused()); RdfOntologies.addProperty( res, RdfOntologies.mbankProperty("altTaxonName"), deterAnno.getAltTaxonName()); }
public void addObjects(Resource res, int depth) { if (deterAnno.getSpecimen() != null) { // call getSpecimen to force // load createRdfObject(deterAnno.getSpecimen()).toDetailRDF(depth - 1); } if (deterAnno.getTaxon() != null) { // call getSpecimen to force load createRdfObject(deterAnno.getTaxon()).toDetailRDF(depth - 1); } if (deterAnno.getMyCollection() != null) { // call getSpecimen to force // load createRdfObject(deterAnno.getMyCollection()).toDetailRDF(depth - 1); } }
public void addReferenceProperties(Resource res) { RdfOntologies.addReference(res, this, deterAnno.getSpecimen(), "specimen"); RdfOntologies.addReference(res, this, deterAnno.getTaxon(), "taxon"); RdfOntologies.addReference(res, this, deterAnno.getMyCollection(), "collection"); }