From c261f02c8472d6217a9a17fe7a2a96ba9651b6f6 Mon Sep 17 00:00:00 2001 From: colin-adams Date: Wed, 7 Aug 2013 06:24:45 -0700 Subject: [PATCH] Created Wsf previous policy (markdown) --- Wsf-previous-policy.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Wsf-previous-policy.md diff --git a/Wsf-previous-policy.md b/Wsf-previous-policy.md new file mode 100644 index 00000000..37c965c5 --- /dev/null +++ b/Wsf-previous-policy.md @@ -0,0 +1,20 @@ +# Implementing WSF_PREVIOUS_POLICY + +This class provides routines which enable the programmer to encode knowledge about resources that have moved (either temporarily, or permanently), or have been permanently removed. There are four routines, but only one is actually deferred. + +## resource_previously_existed + +By default, this routine says that currently doesn't exist, never has existed. You need to redefine this routine to return True for any URIs that you want to indicate used to exist, and either no longer do so, or have moved to another location. + +## resource_moved_permanently + +If you have indicated that a resource previously existed, then it may have moved permanently, temporarily, or just ceased to exist. In the first case, you need to redefine this routine to return True for such a resource. +## resource_moved_temporarily + +If you have indicated that a resource previously existed, then it may have moved permanently, temporarily, or just ceased to exist. In the second case, you need to redefine this routine to return True for such a resource. + +## previous_location + +You need to implement this routine. It should provide the locations where a resource has moved to. There must be at least one such location. If more than one is provided, then the first one is considered primary. + +If the preconditions for this routine are never met (as is the case by default), then just return an empty list. \ No newline at end of file