Loading src/main/java/fr/emse/gitlab/saref/vocabs/SCHEMA.java 0 → 100644 +16 −0 Original line number Diff line number Diff line package fr.emse.gitlab.saref.vocabs; import org.apache.jena.rdf.model.Property; import org.apache.jena.rdf.model.Resource; import org.apache.jena.rdf.model.ResourceFactory; public class SCHEMA { public static final String NS = "http://schema.org/"; public static final Resource Person = ResourceFactory.createResource(NS + "Person"); public static final Property givenName = ResourceFactory.createProperty(NS, "givenName"); public static final Property familyName = ResourceFactory.createProperty(NS, "familyName"); public static final Property affiliation = ResourceFactory.createProperty(NS, "affiliation"); public static final Resource Organization = ResourceFactory.createResource(NS + "Organization"); public static final Property name = ResourceFactory.createProperty(NS, "name"); } No newline at end of file src/main/resources/documentation/term/subSubPropertyChain.rqg 0 → 100644 +23 −0 Original line number Diff line number Diff line PREFIX st: <http://ns.inria.fr/sparql-template/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX fun: <http://w3id.org/sparql-generate/fn/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX obo: <http://purl.obolibrary.org/obo/> PREFIX swrl: <http://www.w3.org/2003/11/swrl#> PREFIX prov: <http://www.w3.org/ns/prov#> PREFIX iter: <http://w3id.org/sparql-generate/iter/> BASE <https://saref.etsi.org/documentation/> TEMPLATE <term/subSubPropertyChain.rqg>(?c ) { " <span class='logic'>o</span> " TEMPLATE <term/propertyDescription.rqg>( ?op ) . TEMPLATE <term/subSubPropertyChain.rqg>( ?rest ) . } WHERE { ?c rdf:first ?op ; rdf:rest ?rest . } Loading
src/main/java/fr/emse/gitlab/saref/vocabs/SCHEMA.java 0 → 100644 +16 −0 Original line number Diff line number Diff line package fr.emse.gitlab.saref.vocabs; import org.apache.jena.rdf.model.Property; import org.apache.jena.rdf.model.Resource; import org.apache.jena.rdf.model.ResourceFactory; public class SCHEMA { public static final String NS = "http://schema.org/"; public static final Resource Person = ResourceFactory.createResource(NS + "Person"); public static final Property givenName = ResourceFactory.createProperty(NS, "givenName"); public static final Property familyName = ResourceFactory.createProperty(NS, "familyName"); public static final Property affiliation = ResourceFactory.createProperty(NS, "affiliation"); public static final Resource Organization = ResourceFactory.createResource(NS + "Organization"); public static final Property name = ResourceFactory.createProperty(NS, "name"); } No newline at end of file
src/main/resources/documentation/term/subSubPropertyChain.rqg 0 → 100644 +23 −0 Original line number Diff line number Diff line PREFIX st: <http://ns.inria.fr/sparql-template/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX fun: <http://w3id.org/sparql-generate/fn/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX obo: <http://purl.obolibrary.org/obo/> PREFIX swrl: <http://www.w3.org/2003/11/swrl#> PREFIX prov: <http://www.w3.org/ns/prov#> PREFIX iter: <http://w3id.org/sparql-generate/iter/> BASE <https://saref.etsi.org/documentation/> TEMPLATE <term/subSubPropertyChain.rqg>(?c ) { " <span class='logic'>o</span> " TEMPLATE <term/propertyDescription.rqg>( ?op ) . TEMPLATE <term/subSubPropertyChain.rqg>( ?rest ) . } WHERE { ?c rdf:first ?op ; rdf:rest ?rest . }