I'm pretty new to Angular so I am not sure of the best way to do this. My app is going to be making a number of sparql queries. Each query is a string that will need to be referenced and manipulated prior to each post. I have two main questions.
- What is the best way to store these queries? Are these an asset or a service?
- How will I be able to insert other variables into these queries before posting?
Here's an example:
Query 1 = "select ?s ?p ?o where { <variable to be inserted prior to post> ?o ?p }