Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PREFIX imo: <http://example.com/resource/>
- SELECT ?id ?x ?l ?val WHERE { {
- #get_all_data
- #all the queries must have these 3 follow lines
- ?s ?temp imo:ad.
- ?s ?x ?l.
- ?s imo:id ?id.
- #get_effective_area bigger than
- #?val = user input
- ?s imo:effective_area ?val.
- FILTER(?val > 1000).
- #get_effective_area lower than
- #?val = user input
- ?s imo:effective_area ?val.
- FILTER(?val < 1000).
- #get_total_area bigger than
- # ?val = user input
- ?s imo:total_area ?val.
- FILTER(?val > 1000).
- #get_total_area lower than
- #?val = user input
- ?s imo:total_area ?val.
- FILTER(?val < 1000).
- #get_house_by_district
- #case sensitivity Lisboa, Aveiro....
- # ?district = user input
- ?s imo:house_district ?district.
- FILTER(?district ="Lisboa").
- #get_energy_cerficiate
- #case sensitivity
- #input string certificate = "([a-gA-G](\+|-)?)|(Isento)"
- ?s imo:energy_certificate ?certificate.
- FILTER(?certificate ="B").
- #get_house_condition
- #case sensitivity
- # inputs: "Renovado" || "Novo" || "Usado" || "Em construção" || "Para recuperar"
- ?s imo:house_condition ?condition.
- FILTER(?condition ="usado").
- #get_listing_type
- #case sentivity
- #inputs: "buy" | "rent"
- ?s imo:listing_type ?type.
- FILTER(?type ="buyRent").
- #get_number_of_rooms
- #?nrooms = user input
- ?s imo:number_of_rooms ?nrooms.
- FILTER(?nrooms = 1).
- #get_number_of_bathrooms
- #num = 1 | 2 | 3 | 4
- #nbathrooms = user input
- ?s imo:number_of_bathrooms ?nbathrooms.
- FILTER(?nbathrooms = 1).
- #get_house_cost_by_range
- #lower cost and higher cost = user input
- ?s imo:house_cost ?cost.
- FILTER(?cost > 200 && ?cost <300000).
- }
- }LIMIT 158
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement