Advertisement
Guest User

Untitled

a guest
Jan 30th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 4.00 KB | None | 0 0
  1. SELECT DISTINCT ?Product_name0 ?Url1 ?Image_ingredients_url2 ?Image_url3 ?Image_nutrition_url4 ?Ingredients_text5 ?Code6 ?Allergens7 ?Brands8 ?AdditivesLabel9 ?Additives10 ?Generic_name11 ?Quantity12 ?CategoryLabel13 ?Manufacturing_places14 ?Stores15 ?Emb_codes16 WHERE { GRAPH <https://openfoodfacts.org/> {?FoodProduct17 <http://world-fr.openfoodfacts.org/url> ?Url1 .
  2.   FILTER ( (!ISLITERAL(?Url1)) || LANG( ?Url1 )="" || LANG( ?Url1 )="en"  )  .
  3. ?FoodProduct17 <http://world-fr.openfoodfacts.org/product_name> ?Product_name0 FILTER ( (!ISLITERAL(?Product_name0)) || LANG( ?Product_name0 )="" || LANG( ?Product_name0 )="en"  )  .
  4.  ?FoodProduct17 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://world-fr.openfoodfacts.org/FoodProduct> OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/additives_tags> ?AdditivesResource18 .
  5.  ?AdditivesResource18 <http://www.w3.org/2000/01/rdf-schema#label> ?AdditivesLabel9 FILTER ( (!ISLITERAL(?AdditivesLabel9)) || LANG( ?AdditivesLabel9 )="" || LANG( ?AdditivesLabel9 )="en"  )  .
  6.  ?AdditivesResource18 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://world-fr.openfoodfacts.org/Additive> .
  7.   }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/quantity> ?Quantity12 FILTER ( (!ISLITERAL(?Quantity12)) || LANG( ?Quantity12 )="" || LANG( ?Quantity12 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/brands> ?Brands8 FILTER ( (!ISLITERAL(?Brands8)) || LANG( ?Brands8 )="" || LANG( ?Brands8 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/additives> ?Additives10 FILTER ( (!ISLITERAL(?Additives10)) || LANG( ?Additives10 )="" || LANG( ?Additives10 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/code> ?Code6 FILTER ( (!ISLITERAL(?Code6)) || LANG( ?Code6 )="" || LANG( ?Code6 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/allergens> ?Allergens7 FILTER ( (!ISLITERAL(?Allergens7)) || LANG( ?Allergens7 )="" || LANG( ?Allergens7 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/image_ingredients_url> ?Image_ingredients_url2 FILTER ( (!ISLITERAL(?Image_ingredients_url2)) || LANG( ?Image_ingredients_url2 )="" || LANG( ?Image_ingredients_url2 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/generic_name> ?Generic_name11 FILTER ( (!ISLITERAL(?Generic_name11)) || LANG( ?Generic_name11 )="" || LANG( ?Generic_name11 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/image_url> ?Image_url3 FILTER ( (!ISLITERAL(?Image_url3)) || LANG( ?Image_url3 )="" || LANG( ?Image_url3 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/emb_codes> ?Emb_codes16 FILTER ( (!ISLITERAL(?Emb_codes16)) || LANG( ?Emb_codes16 )="" || LANG( ?Emb_codes16 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/stores> ?Stores15 FILTER ( (!ISLITERAL(?Stores15)) || LANG( ?Stores15 )="" || LANG( ?Stores15 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/categories_tags> ?Category19 .
  8.  ?Category19 <http://www.w3.org/2000/01/rdf-schema#label> ?CategoryLabel13 FILTER ( (!ISLITERAL(?CategoryLabel13)) || LANG( ?CategoryLabel13 )="" || LANG( ?CategoryLabel13 )="en"  )  .
  9.  ?Category19 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://world-fr.openfoodfacts.org/Category> .
  10.   }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/image_nutrition_url> ?Image_nutrition_url4 FILTER ( (!ISLITERAL(?Image_nutrition_url4)) || LANG( ?Image_nutrition_url4 )="" || LANG( ?Image_nutrition_url4 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/manufacturing_places> ?Manufacturing_places14 FILTER ( (!ISLITERAL(?Manufacturing_places14)) || LANG( ?Manufacturing_places14 )="" || LANG( ?Manufacturing_places14 )="en"  )  }  OPTIONAL { ?FoodProduct17 <http://world-fr.openfoodfacts.org/ingredients_text> ?Ingredients_text5 FILTER ( (!ISLITERAL(?Ingredients_text5)) || LANG( ?Ingredients_text5 )="" || LANG( ?Ingredients_text5 )="en"  )  } }} LIMIT 500
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement