<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE rdf:RDF [
    <!ENTITY rdf        "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <!ENTITY rdfs       "http://www.w3.org/2000/01/rdf-schema#">
    <!ENTITY owl        "http://www.w3.org/2002/07/owl#">
    <!ENTITY xsd        "http://www.w3.org/2001/XMLSchema#">
    <!ENTITY sswap      "http://sswapmeet.sswap.info/sswap/">
    <!ENTITY myResources  "http://sswap.info/sswap/">
    <!ENTITY myServices  "&myResources;resources/">
    <!ENTITY qterms "&myResources;ontologies/GraphQuery/">
]>

<rdf:RDF
    xmlns:rdf       = "&rdf;"
    xmlns:rdfs      = "&rdfs;"
    xmlns:owl       = "&owl;"
    xmlns:xsd       = "&xsd;"
    xmlns:sswap     = "&sswap;"
    xmlns:myResources = "&myResources;"
    xmlns:myServices = "&myServices;"
    xmlns:qterms    = "&qterms;"
>

<owl:Ontology rdf:about="&sswap;owlOntology">
    <owl:imports rdf:resource="&sswap;owlOntology"/>
    <owl:imports>
        <owl:Ontology rdf:about="&qterms;owlImports"/>
    </owl:imports>
</owl:Ontology>

<sswap:Resource rdf:about="&myServices;queryForResources/queryForResources">

    <sswap:name>SSWAP Graph Query</sswap:name>
    
    <sswap:oneLineDescription
        >Graph query for semantic web services</sswap:oneLineDescription>
    
    <sswap:providedBy>
        <sswap:Provider rdf:about="&myResources;resourceProvider"/>
    </sswap:providedBy>
    
    <sswap:inputURI rdf:datatype="&xsd;anyURI"
        >&myServices;queryForResources/inputForm.jsp</sswap:inputURI>
    
    <sswap:outputURI rdf:datatype="&xsd;anyURI"
        >&myServices;queryForResources/outputForm.jsp</sswap:outputURI>

    <sswap:metadata rdf:datatype="&xsd;anyURI"
        >&myServices;queryForResources/metadata.txt</sswap:metadata>
    
    <sswap:operatesOn>
    
        <sswap:Graph>
            <sswap:hasMapping>
                <sswap:Subject>
                    <qterms:serializedQueryGraph></qterms:serializedQueryGraph>
                    <sswap:mapsTo>
                        <sswap:Object>
                            <sswap:name/>
                            <sswap:oneLineDescription/>
                            <sswap:providedBy>
                                <sswap:Provider rdf:nodeID="someProvider"/>
                            </sswap:providedBy>
                            <rdf:type>
                                <owl:Class rdf:about="&sswap;Resource"/>
                            </rdf:type>
                        </sswap:Object>
                    </sswap:mapsTo>
                </sswap:Subject>
            </sswap:hasMapping>
        </sswap:Graph>
        
    </sswap:operatesOn>
    
</sswap:Resource>

</rdf:RDF>
