Search in sources :

Example 1 with Publication

use of org.openlca.ilcd.commons.Publication in project olca-modules by GreenDelta.

the class FlowExport method addPublication.

private void addPublication(AdminInfo info) {
    Publication pub = new Publication();
    info.publication = pub;
    pub.version = Version.asString(flow.version);
    if (baseUri == null)
        baseUri = "http://openlca.org/ilcd/resource/";
    if (!baseUri.endsWith("/"))
        baseUri += "/";
    pub.uri = baseUri + "flows/" + flow.refId;
}
Also used : Publication(org.openlca.ilcd.commons.Publication)

Example 2 with Publication

use of org.openlca.ilcd.commons.Publication in project olca-modules by GreenDelta.

the class FlowPropertyExport method addPublication.

private void addPublication(AdminInfo info) {
    Publication pub = new Publication();
    info.publication = pub;
    pub.version = Version.asString(flowProperty.version);
    if (baseUri == null)
        baseUri = "http://openlca.org/ilcd/resource/";
    if (!baseUri.endsWith("/"))
        baseUri += "/";
    pub.uri = baseUri + "flowproperties/" + flowProperty.refId;
}
Also used : Publication(org.openlca.ilcd.commons.Publication)

Example 3 with Publication

use of org.openlca.ilcd.commons.Publication in project olca-modules by GreenDelta.

the class SourceExport method addPublication.

private void addPublication(AdminInfo info) {
    Publication pub = new Publication();
    info.publication = pub;
    pub.version = Version.asString(source.version);
    if (baseUri == null)
        baseUri = "http://openlca.org/ilcd/resource/";
    if (!baseUri.endsWith("/"))
        baseUri += "/";
    pub.uri = baseUri + "sources/" + source.refId;
}
Also used : Publication(org.openlca.ilcd.commons.Publication)

Example 4 with Publication

use of org.openlca.ilcd.commons.Publication in project olca-modules by GreenDelta.

the class ActorExport method addPublication.

private void addPublication(AdminInfo info) {
    Publication pub = new Publication();
    info.publication = pub;
    pub.version = Version.asString(actor.version);
    if (baseUri == null)
        baseUri = "http://openlca.org/ilcd/resource/";
    if (!baseUri.endsWith("/"))
        baseUri += "/";
    pub.uri = baseUri + "contacts/" + actor.refId;
}
Also used : Publication(org.openlca.ilcd.commons.Publication)

Example 5 with Publication

use of org.openlca.ilcd.commons.Publication in project olca-modules by GreenDelta.

the class FlowUpdateTest method makeFlow.

private Flow makeFlow(String id) {
    Flow flow = new Flow();
    FlowInfo info = new FlowInfo();
    flow.flowInfo = info;
    DataSetInfo dataInfo = new DataSetInfo();
    dataInfo.uuid = id;
    info.dataSetInfo = dataInfo;
    FlowName name = new FlowName();
    dataInfo.name = name;
    LangString.set(name.baseName, "test flow - " + id, "en");
    AdminInfo adminInfo = new AdminInfo();
    Publication pub = new Publication();
    adminInfo.publication = pub;
    pub.version = "01.00.000";
    flow.adminInfo = adminInfo;
    Modelling mav = new Modelling();
    flow.modelling = mav;
    LCIMethod method = new LCIMethod();
    mav.lciMethod = method;
    method.flowType = FlowType.ELEMENTARY_FLOW;
    return flow;
}
Also used : FlowInfo(org.openlca.ilcd.flows.FlowInfo) LCIMethod(org.openlca.ilcd.flows.LCIMethod) FlowName(org.openlca.ilcd.flows.FlowName) AdminInfo(org.openlca.ilcd.flows.AdminInfo) Publication(org.openlca.ilcd.commons.Publication) Modelling(org.openlca.ilcd.flows.Modelling) DataSetInfo(org.openlca.ilcd.flows.DataSetInfo) Flow(org.openlca.ilcd.flows.Flow)

Aggregations

Publication (org.openlca.ilcd.commons.Publication)12 AdminInfo (org.openlca.ilcd.flows.AdminInfo)2 AdminInfo (org.openlca.ilcd.sources.AdminInfo)2 AdminInfo (org.openlca.ilcd.contacts.AdminInfo)1 AdminInfo (org.openlca.ilcd.flowproperties.AdminInfo)1 DataSetInfo (org.openlca.ilcd.flows.DataSetInfo)1 Flow (org.openlca.ilcd.flows.Flow)1 FlowInfo (org.openlca.ilcd.flows.FlowInfo)1 FlowName (org.openlca.ilcd.flows.FlowName)1 LCIMethod (org.openlca.ilcd.flows.LCIMethod)1 Modelling (org.openlca.ilcd.flows.Modelling)1 AdminInfo (org.openlca.ilcd.units.AdminInfo)1