diff --git a/mvn-sync/v2/dcat-generator/pom.xml b/mvn-sync/v2/dcat-generator/pom.xml new file mode 100644 index 0000000..bdc90db --- /dev/null +++ b/mvn-sync/v2/dcat-generator/pom.xml @@ -0,0 +1,301 @@ + + + 4.0.0 + org.aksw.data.config + dcat-generator + 0.0.1-SNAPSHOT + + + + + org.aksw.data.config + aksw-data-deployment + 0.0.8 + + + + pom + + + + + + ttl.bz2 + dcat + ${project.build.directory}/${project.artifactId}-${output.classifier}.${output.type} + + + urn:mvn:${input.groupId}:${input.artifactId}:${input.version} + ${input.urn.base}:${input.type} + ${input.urn.base}#dataset + ${input.urn.data}#distribution + + ${input.urn.dataset}/void + + ${input.urn.base}:pom + ${input.urn.base}:${input.type} + + ${input.urn.data}#activity + ${input.urn.data}#plan + + urn:mvn:${project.groupId}:${project.artifactId}:${project.version} + + ${output.urn.base}:pom + ${output.urn.base}:${output.type} + ${output.urn.base}#activity + + ${project.build.directory}/datasets + ${datasetDirectory}/${input.artifactId}.${input.type} + ${datasetDirectory}/${input.artifactId}.pom + + + 5.0.0-1-SNAPSHOT + + + + + org.aksw.jenax + jenax-resources-prefixes + ${jenax.version} + + + + + + default + + true + + + + + ${project.build.directory}/datasets + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + resource-dependencies + process-resources + + copy + + + + ${project.build.directory}/cache + true + + + + ${input.groupId} + ${input.artifactId} + ${input.version} + pom + true + ${datasetDirectory} + + + + ${input.groupId} + ${input.artifactId} + ${input.version} + ${input.type} + true + ${datasetDirectory} + + + + + + + + + + org.aksw.maven.plugins + sparql-maven-plugin + 0.0.1-SNAPSHOT + + + generate-metadata + process-resources + + run + + + ${output.path} + ${output.type} + + ${input.urn.void} + ${input.urn.dataset} + + $input.urn.base}# + ${input.pom.path} + + + ${input.data.path} + + void/sportal/compact/qbAllBut2.rq + void/sportal/compact/qb2.rq + + void/sportal/compact/qcAllBut35.rq + void/sportal/compact/qc3.rq + void/sportal/compact/qc5.rq + + void/sportal/compact/qdAll.rq + void/sportal/compact/qeAll.rq + + void/sportal/compact/qf1.rq + void/sportal/compact/qf2.rq + void/sportal/compact/qf3.rq + void/sportal/compact/qf4.rq + void/sportal/compact/qf5.rq + void/sportal/compact/qf6.rq + void/sportal/compact/qf7.rq + void/sportal/compact/qf8.rq + void/sportal/compact/qf9.rq + void/sportal/compact/qf10.rq + + void/sportal/compact/qx1.rq + + + + + rdf-prefixes/prefix.cc.2019-12-17.ttl + + a dcat:Dataset ; + prov:wasGeneratedBy <${input.urn.activity}> ; + dcat:distribution <${input.urn.distribution}> ; + . + + <${input.urn.distribution}> + dcat:downloadURL <${input.urn.file}> ; + . + + <${input.urn.activity}> + prov:hadPlan <${input.urn.plan}> ; + . + + <${input.urn.plan}> + a eg:MavenBuild ; + eg:urn <${input.urn.pom}> ; + . + +} WHERE { } +]]> + + + +PREFIX dcat: +PREFIX foaf: +PREFIX org: +PREFIX dct: +PREFIX rdf: +PREFIX ex: +PREFIX xsd: + +CONSTRUCT { ?s ?p ?o } +WHERE { + BIND( AS ?base) + BIND( AS ?datasetIdStr) + BIND(IRI(?datasetIdStr) AS ?datasetId) + BIND( AS ?input) + + BIND(norse:xml.parse(?input) AS ?xml) + LATERAL { + { + BIND(dct:license AS ?p) + ?xml norse:xml.unnest ("/*/:licenses/:license" ?license) . + BIND(IRI(norse:xml.path(?license, "/*/:url/text()")) AS ?licenseUrl) + BIND(?datasetId AS ?s) + LATERAL { + { + BIND(?licenseUrl AS ?o) + } + #UNION { + # BIND(norse:xml.path(?license, "//:name") AS ?licenseName) + #} + } + } + UNION + { + ?xml norse:xml.unnest ("/*/:developers/:developer" ?dev) . + BIND(norse:xml.path(?dev, "/*/:name/text()") AS ?devName) + BIND(norse:xml.path(?dev, "/*/:url/text()") AS ?devUrl) + BIND(IRI(CONCAT(?base, 'dev/', ENCODE_FOR_URI(COALESCE(STR(?devUrl), ?devName)))) AS ?devId) + + BIND(norse:xml.path(?dev, "/*/:organization/text()") AS ?devOrgName) + BIND(IRI(norse:xml.path(?dev, "/*/:organizationUrl/text()")) AS ?devOrgUrl) + BIND(IRI(CONCAT(?base, 'org/', ENCODE_FOR_URI(COALESCE(STR(?devOrgUrl), ?devOrgName)))) AS ?devOrgId) + + LATERAL { + { BIND(?datasetId AS ?s) BIND(dcat:contributor AS ?p) BIND(?devId AS ?o) } + UNION + { BIND(?devId AS ?s) BIND(foaf:name AS ?p) BIND(?devName AS ?o) } + UNION + { BIND(?devId AS ?s) BIND(org:memberOf AS ?p) BIND(?devOrgId AS ?o) } + UNION + { BIND(?devOrgId AS ?s) BIND(rdfs:label AS ?p) BIND(?devOrgName AS ?o) } + UNION + { BIND(?devOrgId AS ?s) BIND(eg:website AS ?p) BIND(?devOrgUrl AS ?o) } + } + } + } +} +]]> + + + + + + + + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + attach-artifacts + package + + attach-artifact + + + + + ${output.path} + ${output.classifier} + ${output.type} + + + + + + + + + + + +