PREFIX om: <http://www.semanticweb.org/florianstapel/ontologies/2014/8/OM.owl#>
PREFIX mdo: <http://www.semanticweb.org/florianstapel/ontologies/2014/8/MDO-Network.owl#>
PREFIX formont: <http://www.semanticweb.org/florianstapel/ontologies/2014/8/OM-Network-Formulations.owl#>
PREFIX spi: <http://www.semanticweb.org/florianstapel/ontologies/2014/8/Top-Set-Parameter-Indexing.owl#>
PREFIX mprop: <http://www.semanticweb.org/florianstapel/ontologies/2015/6/OM.MProps.owl#>
SELECT  ?goalent ?setarc  ?unionsetoperandsarc ?unionsetoperandnames ?varparcost ?varparflow
WHERE
{
PropertyValue(?goalentiri, om:EName, ?goalent),
Type(?goalentiri, formont:LinearSingleCommodityFlowCostGoal), 
PropertyValue(?goalentiri, om:requires, ?setarciri), 
Type(?setarciri, mdo:ArcSet), 
PropertyValue(?setarciri, om:EName, ?setarc),
Type(?setarciri, spi:UnionSet),
PropertyValue(?setarciri, spi:hasOperand, ?unionsetoperandsarc),
PropertyValue(?unionsetoperandsarc, om:EName, ?unionsetoperandnames),
PropertyValue(?goalentiri, om:requires, ?varparcostiri), 
Type(?varparcostiri, mdo:SingleCommodityCostCollection),
PropertyValue(?varparcostiri, om:EName, ?varparcost), 
PropertyValue(?goalentiri, om:requires, ?varparflow), 
Type(?varparflowiri, mdo:SingleCommodityFlowCollection),
PropertyValue(?varparflowiri, om:EName, ?varparflow) 
} OR WHERE
{
PropertyValue(?goalentiri, om:EName, ?goalent),
Type(?goalentiri, formont:LinearSingleCommodityFlowCostGoal), 
PropertyValue(?goalentiri, om:requires, ?setarciri), 
Type(?setarciri, mdo:ArcSet), 
PropertyValue(?setarciri, om:EName, ?setarc),
PropertyValue(?goalentiri, om:requires, ?varparcostiri), 
Type(?varparcostiri, mdo:SingleCommodityCostCollection),
PropertyValue(?varparcostiri, om:EName, ?varparcost), 
PropertyValue(?goalentiri, om:requires, ?varparflowiri), 
Type(?varparflowiri, mdo:SingleCommodityFlowCollection),
PropertyValue(?varparflowiri, om:EName, ?varparflow) 
}


 
