from rdflib.namespace import DC, OWL, RDFS, SKOS
from rdflib.plugins import sparql


def test_issue():
    query = sparql.prepareQuery(  # noqa: F841
        """
            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},
    )
