summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-10-15 17:33:29 +0200
committerJonas Smedegaard <dr@jones.dk>2010-10-15 17:33:29 +0200
commitdcb055204629ba5bf7b12131a79b7a3f89c21392 (patch)
tree32bbdb90dada63ac223a3d2ec07e45ec6bad9fbc /projects
parent3cdba8ac30ad6b8c822e7259bfb74ad56a983471 (diff)
Add and use default prefix in main FOAF turtle file.
Diffstat (limited to 'projects')
-rwxr-xr-xprojects/foaf/mkfoaf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/foaf/mkfoaf.sh b/projects/foaf/mkfoaf.sh
index dbb842f..e8ee107 100755
--- a/projects/foaf/mkfoaf.sh
+++ b/projects/foaf/mkfoaf.sh
@@ -38,7 +38,7 @@ linkedin2foaf() {
# TODO: support homepage as fallback for accountName
# id=$(perl -0 -ne '/foaf:accountServiceHomepage\s+<http:\/\/www.linkedin.com\/>\s+;\s+foaf:(?:homepage\s+<(?=http)|accountName\s+")([^<"\s]+)/ and print $1 and exit;' "$inpath") #'
- id=$(perl -0 -ne '/^<#me>.*?foaf:accountServiceHomepage\s+<http:\/\/www.linkedin.com\/>\s+;\s+foaf:accountName\s+"([^<"\s]+)/ms and print $1 and exit;' "$inpath") #'
+ id=$(perl -0 -ne '/^:me.*?foaf:accountServiceHomepage\s+<http:\/\/www.linkedin.com\/>\s+;\s+foaf:accountName\s+"([^<"\s]+)/ms and print $1 and exit;' "$inpath") #'
[ -n "$id" ] || exit1 "Failed to resolve LinkedIn account name."
mkdir -p "$outdir"