diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-10-15 17:33:29 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-10-15 17:33:29 +0200 |
commit | dcb055204629ba5bf7b12131a79b7a3f89c21392 (patch) | |
tree | 32bbdb90dada63ac223a3d2ec07e45ec6bad9fbc /projects/foaf | |
parent | 3cdba8ac30ad6b8c822e7259bfb74ad56a983471 (diff) |
Add and use default prefix in main FOAF turtle file.
Diffstat (limited to 'projects/foaf')
-rwxr-xr-x | projects/foaf/mkfoaf.sh | 2 |
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" |