All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bigdata.rdf.sparql.ast.eval.bsbm.bi.query7.rq Maven / Gradle / Ivy

There is a newer version: 2.1.4
Show newest version
# BSBM BI Q7
#
# Query 7: Products in the top 1000 most offered products of a certain product type that are not sold by vendors of a specific country
#
# Use Case Motivation: A vendor wants information about potential market niches to offer new products in the vendor's country of origin.

prefix bsbm: 
prefix bsbm-inst: 
prefix xsd: 

Select ?product
{
  { Select ?product
    {
      { Select ?product (count(?offer) As ?offerCount)
        {
          ?product a  .
          ?offer bsbm:product ?product .
        }
        Group By ?product
      }
    }
    Order By desc(?offerCount)
    Limit 1000
  }
  FILTER NOT EXISTS
  {
    ?offer bsbm:product ?product .
    ?offer bsbm:vendor ?vendor .
    ?vendor bsbm:country ?country .
    FILTER(?country=)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy