I am trying to populate my local ontology with 10 random books. I would like to include 2 known books in the list for testing purpose.i.e out of the 10 I want to specify the names of 2 books and the remaining 8 can be random.
I do not know how to combine FILTER and LIMIT together.
I want the 2 books in the query along with 8 random books.
FILTER (str(?name) IN ("Panther in the Basement", "Endless Night"))
My code
SELECT ?book ?date
WHERE {
?book rdf:type dbo:Book .
?book foaf:name ?name .
?book dbp:releaseDate ?date .
}
limit 10