summaryrefslogtreecommitdiff
path: root/test/test_issue545.py
blob: ea9f185b3a90fa95c2a12c64d609989897476ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from rdflib.plugins import sparql
from rdflib.namespace import RDFS, OWL, DC, SKOS


def test_issue():

    query = sparql.prepareQuery(
        """
            SELECT DISTINCT ?property ?parent
            WHERE{
                ?property a owl:DeprecatedProperty .
                ?property dc:relation ?relation .
                ?property rdfs:subPropertyOf ?parent .
                ?property rdfs:label | skos:altLabel ?label .
            }
        """,
        initNs={"rdfs": RDFS, "owl": OWL, "dc": DC, "skos": SKOS},
    )