# A query use-case using Andy Seaborn's schema, for the report generator. @prefix rdf: . @prefix rdfs: . @prefix qucs: . @prefix quc: . [ a qucs:UseCase ; qucs:label "xxx" ; #pick a value qucs:submissionDate "2002-06-06" ; qucs:emailArchiveURL ; qucs:name "Extract information from RDF for report generation" ; qucs:description """ Given an RDF database of various information, extract selected parts for generating (say) an HTML document from the content. The result of the query is a collection of variable bindings that are passed to a report formatter. This approach has been used in practice for the generation of Internet protocol registry documents. """ ; qucs:example [ qucs:queryLanguage "Custom" ; qucs:query """ ( ?Header ( rdf:type hdr:HeaderField & hdr:fieldName ?name & rdfs:label ?purpose & hdr:protocol ?p ( hdr:protocolName ?pname & hdr:specification ?ps hdr:document ?psdocument ) ) ) """ ] ; qucs:example [ qucs:queryLanguage "Same query, encoded in N3/RDF" ; qucs:query """ hrep:HdrProtoPattern :- ( [ rep:var "header" ] [ rep:and ( [ rep:uri rdf:type ] [ rep:uri hdr:HeaderField ] ), ( [ rep:uri hdr:fieldName ] [ rep:var "name" ] ), ( [ rep:uri rdfs:label ] [ rep:var "purpose" ] ), ( [ rep:uri hdr:protocol ] [ rep:var "p" ] [ rep:and ( [ rep:uri hdr:protocolName] [ rep:var "pname" ] ), ( [ rep:uri hdr:specification] [ rep:var "ps" ] [ rep:uri hdr:document ] [ rep:var "psdocument" ] ) ] ) ] ) . """ ] ] .