# Path: cartographer/utils/version.py
# def get_default_version():
#     return _JSONAPI_DEFAULT_VERSION
# 
# class JSONAPIVersion(Enum):
#     JSONAPI_RC2 = "1.0RC2"
#     JSONAPI_RC3 = "1.0RC3"
#     JSONAPI_1_0 = "1.0"


import importlib
from collections import deque
from cartographer.utils.version import get_default_version, JSONAPIVersion
            from flask import request
            if resource.resource_key():
                all_linked_resources.append(resource)

            enqueue_linked_resources(resource)

        return all_linked_resources

    def deeply_linked_resources_as_json(self, version, skip_self=True):
        return list(filter(None, [
            resource.as_json_api_data(version)
            for resource
            in self.deeply_linked_resources(skip_self)
        ]))

    def resource_links_json(self, version):
        return {
            link_name: resource.as_link_json(version)
            for link_name, resource in self.linked_resources().items()
        }

    def as_linkage_json(self):
        return {"type": self.resource_type(), "id": self.resource_id_str()}

    def relationship_urls_json(self, version):
        relationship_urls_json = {}
        if self.relationship_url():
            relationship_urls_json["self"] = self.relationship_url()
        if self.resource_url():
            if version == JSONAPIVersion.JSONAPI_RC2:
                relationship_urls_json["resource"] = self.resource_url()

# Path: cartographer/utils/version.py
# def get_default_version():
#     return _JSONAPI_DEFAULT_VERSION
# 
# class JSONAPIVersion(Enum):
#     JSONAPI_RC2 = "1.0RC2"
#     JSONAPI_RC3 = "1.0RC3"
#     JSONAPI_1_0 = "1.0"


# Path: cartographer/serializers/jsonapi_serializer.py
import importlib
from collections import deque
from cartographer.utils.version import get_default_version, JSONAPIVersion
            from flask import request

            if resource.resource_key():
                all_linked_resources.append(resource)

            enqueue_linked_resources(resource)

        return all_linked_resources

    def deeply_linked_resources_as_json(self, version, skip_self=True):
        return list(filter(None, [
            resource.as_json_api_data(version)
            for resource
            in self.deeply_linked_resources(skip_self)
        ]))

    def resource_links_json(self, version):
        return {
            link_name: resource.as_link_json(version)
            for link_name, resource in self.linked_resources().items()
        }

    def as_linkage_json(self):
        return {"type": self.resource_type(), "id": self.resource_id_str()}

    def relationship_urls_json(self, version):
        relationship_urls_json = {}
        if self.relationship_url():
            relationship_urls_json["self"] = self.relationship_url()
        if self.resource_url():
            if version == JSONAPIVersion.JSONAPI_RC2:
                relationship_urls_json["resource"] = self.resource_url()

            elif version == JSONAPIVersion.JSONAPI_RC3 or version == JSONAPIVersion.JSONAPI_1_0: