Skip to content

Latest commit

 

History

History
125 lines (118 loc) · 2.21 KB

postprocessingQueries.md

File metadata and controls

125 lines (118 loc) · 2.21 KB

post-processing SPARQL queries

INSERT {
GRAPH <https://slidewiki.org> {
?s rdfs:label ?label  .
}
} WHERE {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/username> ?label .
}
}
INSERT {
GRAPH <https://slidewiki.org> {
?s rdfs:label ?label  .
}
} WHERE {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/title> ?label .
}
}
INSERT {
GRAPH <https://slidewiki.org> {
?s rdfs:label ?title .
}
} WHERE {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/isEqualTo> ?v .
?v <http://rdf.slidewiki.org/vocab/title> ?title .
}
}
INSERT {
GRAPH <https://slidewiki.org> {
?v <http://rdf.slidewiki.org/vocab/isRevisedFrom> ?s
}
} WHERE {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/hasRevision> ?v .

}
}
INSERT {
GRAPH <https://slidewiki.org> {
?uname <http://rdf.slidewiki.org/vocab/hasCreated> ?s.
}
} WHERE {
GRAPH <https://slidewiki.org> {
?s a <http://rdf.slidewiki.org/vocab/Deck> ; <http://purl.org/net/provenance/ns#createdBy> ?uname .
}
}
INSERT {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/relatedSlide> ?rt .
}
} WHERE {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/related_object> ?ro .
?s <http://rdf.slidewiki.org/vocab/relatedTo> ?rt .
FILTER(?ro="slide")

}
}
INSERT {
GRAPH <https://slidewiki.org> {
?s rdfs:label ?label  .
}
} WHERE {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/defaultName> ?label .
}
}
INSERT {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/relatedDeck> ?rt .
}
} WHERE {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/related_object> ?ro .
?s <http://rdf.slidewiki.org/vocab/relatedTo> ?rt .
FILTER(?ro="deck")

}
}
INSERT {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/hasTag> ?t .

}
} WHERE {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/hasTag> ?tagName .
?t <http://rdf.slidewiki.org/vocab/tagName> ?tagName .

}
}
DELETE {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/hasTag> ?t .

}
} WHERE {
GRAPH <https://slidewiki.org> {
?s <http://rdf.slidewiki.org/vocab/hasTag> ?t .
FILTER(!isURI(?t))
}
}