Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Swirrl/drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
ricroberts committed Mar 2, 2017
2 parents 220a7dd + 0a4fccc commit cb927a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/drafter/rdf/draft_management.clj
Original file line number Diff line number Diff line change
Expand Up @@ -290,16 +290,17 @@ PREFIX drafter: <" (drafter "") ">"))
" ?lg a drafter:ManagedGraph ."
" ?lg drafter:isPublic false ."
" ?lg ?lp ?lo ."
" FILTER NOT EXISTS {"
" MINUS {"
" ?lg drafter:hasDraft ?odg ."
" FILTER (?odg != <" draft-graph-uri ">)"
" }"
"}"))

(defn- delete-draft-graph-query [draft-graph-uri]
(util/make-compound-sparql-query
[(delete-draft-graph-and-remove-from-state-query draft-graph-uri)
(delete-dependent-private-managed-graph-query draft-graph-uri)]))
(let [q (util/make-compound-sparql-query
[(delete-draft-graph-and-remove-from-state-query draft-graph-uri)
(delete-dependent-private-managed-graph-query draft-graph-uri)])]
q))

(defn delete-draft-graph!
"Deletes a draft graph's contents and all references to it in the
Expand Down

0 comments on commit cb927a8

Please sign in to comment.