diff --git a/pom.xml b/pom.xml index 5d8e81b68..7333a70de 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.atomgraph linkeddatahub - 5.0.4-SNAPSHOT + 5.0.5-SNAPSHOT ${packaging.type} AtomGraph LinkedDataHub diff --git a/scripts/add-object-block.sh b/scripts/add-object-block.sh index d0bc7bcef..5e2d7e2f3 100755 --- a/scripts/add-object-block.sh +++ b/scripts/add-object-block.sh @@ -91,10 +91,6 @@ if [ -z "$base" ] ; then print_usage exit 1 fi -if [ -z "$title" ] ; then - print_usage - exit 1 -fi if [ -z "$value" ] ; then print_usage exit 1 diff --git a/scripts/add-view-block.sh b/scripts/add-view.sh similarity index 82% rename from scripts/add-view-block.sh rename to scripts/add-view.sh index a693e5f05..3d1a0e804 100755 --- a/scripts/add-view-block.sh +++ b/scripts/add-view.sh @@ -36,11 +36,6 @@ do shift # past argument shift # past value ;; - --proxy) - proxy="$2" - shift # past argument - shift # past value - ;; -b|--base) base="$2" shift # past argument @@ -96,20 +91,6 @@ if [ -z "$query" ] ; then exit 1 fi -target="$1" - -ntriples=$(./get.sh \ - -f "$cert_pem_file" \ - -p "$cert_password" \ - --proxy "$proxy" \ - --accept 'application/n-triples' \ - "$target") - -# extract the numbers from the sequence properties -sequence_number=$(echo "$ntriples" | grep "<${target}> ' -f 1 | sort -nr | head -n1) -sequence_number=$((sequence_number + 1)) # increase the counter -sequence_property="http://www.w3.org/1999/02/22-rdf-syntax-ns#_${sequence_number}" - args+=("-f") args+=("$cert_pem_file") args+=("-p") @@ -127,7 +108,6 @@ fi turtle+="@prefix ldh: .\n" turtle+="@prefix dct: .\n" turtle+="@prefix spin: .\n" -turtle+="<${target}> <${sequence_property}> ${subject} .\n" turtle+="${subject} a ldh:View .\n" turtle+="${subject} spin:query <${query}> .\n" diff --git a/src/main/resources/com/atomgraph/linkeddatahub/app/admin/adm.ttl b/src/main/resources/com/atomgraph/linkeddatahub/app/admin/adm.ttl index 4c09fa8ce..7caea6f54 100644 --- a/src/main/resources/com/atomgraph/linkeddatahub/app/admin/adm.ttl +++ b/src/main/resources/com/atomgraph/linkeddatahub/app/admin/adm.ttl @@ -90,7 +90,7 @@ WHERE { { ?class a owl:Class } UNION { ?class a rdfs:Class } - ?class rdfs:isDefinedBy $this + ?class rdfs:isDefinedBy $about } } """ . @@ -234,7 +234,7 @@ PREFIX acl: SELECT DISTINCT ?agent WHERE { GRAPH ?authGraph - { $this acl:agent ?agent } + { $about acl:agent ?agent } } """ ; rdfs:isDefinedBy : . diff --git a/src/main/resources/com/atomgraph/linkeddatahub/ldh.ttl b/src/main/resources/com/atomgraph/linkeddatahub/ldh.ttl index 322cf23da..fc9eec4a1 100644 --- a/src/main/resources/com/atomgraph/linkeddatahub/ldh.ttl +++ b/src/main/resources/com/atomgraph/linkeddatahub/ldh.ttl @@ -574,8 +574,11 @@ dh:Item spin:constructor :TitleConstructor, :DescriptionConstructor, :PrimaryTop PREFIX spin: CONSTRUCT { - $this rdf:_1 [ a ldh:View ; - spin:query ldh:SelectChildren + $this rdf:_1 [ a ldh:Object ; + rdf:value [ + a ldh:View ; + spin:query ldh:SelectChildren + ] ] . } WHERE {}""" ; diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl index 7d436c4b4..01d3ae496 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl @@ -117,6 +117,18 @@ exclude-result-prefixes="#all" + + + + + + + + + + + + diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/chart.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/chart.xsl index df2b1b9c5..c8ddd0aa6 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/chart.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block/chart.xsl @@ -203,7 +203,7 @@ exclude-result-prefixes="#all" - + @@ -218,7 +218,7 @@ exclude-result-prefixes="#all" - +
- - @@ -712,8 +713,8 @@ exclude-result-prefixes="#all" - - + + @@ -1602,9 +1603,6 @@ exclude-result-prefixes="#all" - - - diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/functions.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/functions.xsl index 1796a3527..f7eeab1f2 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/functions.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/functions.xsl @@ -37,7 +37,7 @@ exclude-result-prefixes="#all" - + diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/document.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/document.xsl index 4b930d8b3..2cb0c8c48 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/document.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/document.xsl @@ -13,8 +13,8 @@ - + @@ -306,7 +306,7 @@ extension-element-prefixes="ixsl" - +
- -
-
+
+ + + +
+
+ + + +
+
+
-
+ - - + + +
@@ -619,7 +619,26 @@ extension-element-prefixes="ixsl" -
+
+ + + + + + + + + + + +
@@ -630,11 +649,14 @@ extension-element-prefixes="ixsl" + + - + +