Information on wikipathway Pubmed references and also category, contributors and identifiers on pathways

Statement: 

Display information on wikipathway pages and the reference publication identifiers accroding to a identifier introduced by user as $ID$(e.g., 15782111). Also, this query extracts pathway information on category, contributors, identifier according to a term $term$ (e.g.,lysine). Appying a limit of results about $number$ (e.g., 100).

Query: 
select ?s ?s1 ?label ?category ?contributor ?identifier ?isPartOf ?identifier where{ { ?s<http://www.w3.org/1999/02/22-rdf-syntax-ns#type><http://vocabularies.wikipathways.org/wp#Pathway> . ?s<http://vocabularies.wikipathways.org/wp#category> ?category . ?s<http://purl.org/dc/elements/1.1/contributor>?contributor . ?s<http://purl.org/dc/elements/1.1/identifier>?identifier . ?s<http://www.w3.org/2000/01/rdf-schema#label>?label . FILTER regex(?label, "??term", "i").} UNION { ?s1<http://www.w3.org/1999/02/22-rdf-syntax-ns#type><http://vocabularies.wikipathways.org/wp#PublicationReference> . ?s1<http://purl.org/dc/terms/isPartOf>?isPartOf . ?s1<http://xmlns.com/foaf/0.1/page>?ID . FILTER regex(?ID, "??ID", "i") . } } Limit ??number
Tags: