def secano(query, municipio) -> str:

        query += (
            Constants.aux0() +
            " <http://opendata.aragon.es/def/iaest/medida#hectareas-en-tierras-labradas-de-secano> "
            + Constants.answer0() + " . ")

        query += (
            Constants.aux0() +
            " <http://purl.org/linked-data/sdmx/2009/dimension#refArea> " +
            Constants.etiqueta2() + " . ")

        query += (TemplatesAgriculture.create_bif_contains(
            municipio, Constants.etiqueta2()) + " . ")
        return query
    def ecologica(query, municipio) -> str:

        query += (
            Constants.aux0() +
            " <http://opendata.aragon.es/def/iaest/medida#superficie-total-agricultura-ecologica> "
            + Constants.answer0() + " . ")

        query += (
            Constants.aux0() +
            " <http://purl.org/linked-data/sdmx/2009/dimension#refArea> " +
            Constants.etiqueta2() + " . ")

        query += (TemplatesAgriculture.create_bif_contains(
            municipio, Constants.etiqueta2()) + " . ")
        return query
    def fincas_cultivo_lenoso_regadio_municipio(query, municipio) -> str:

        query += (Constants.comarca() + " " + Constants.aux0() +
                  " ei2a:cultivo_lenoso . ")

        query += (Constants.comarca() +
                  " <http://purl.org/dc/elements/1.1/title> " +
                  Constants.answer0() + " . ")

        query += (Constants.comarca() +
                  " <http://www.w3.org/2003/01/geo/wgs84_pos#location> " +
                  Constants.location() + " . ")

        query += (Constants.location() +
                  " <http://www.w3.org/2003/01/geo/wgs84_pos#location> " +
                  Constants.aux1() + " . ")

        query += (Constants.aux1() + " ei2a:organizationName " +
                  Constants.etiqueta() + " . ")

        query += (TemplatesAgriculture.create_bif_contains(
            municipio, Constants.etiqueta()) + " . ")

        query += (Constants.comarca() +
                  " <http://opendata.aragon.es/def/ei2a#dryOrIrrigated> " +
                  Constants.etiqueta2() + " . ")

        query += (TemplatesAgriculture.create_bif_contains(
            "Regadío", Constants.etiqueta2()) + " . ")
        return query
    def year(query, year) -> str:

        query += (
            Constants.aux0() +
            " <http://purl.org/linked-data/sdmx/2009/dimension#refPeriod> " +
            Constants.etiqueta())

        query += (TemplatesAgriculture.create_bif_contains(
            year, Constants.etiqueta()) + " . ")
        return query
Example #5
0
    def email_ayuntamiento(query, municipio) -> str:
        # municipio = municipio.upper()  # En el campo esta en mayusculas el municipio

        query += (Constants.municipio() + " " + Constants.aux0() +
                  " ei2a:Ayuntamiento . ")

        query += (Constants.municipio() + " ei2a:organizationName " +
                  Constants.etiqueta())

        query += (TemplatesAragon.create_bif_contains(
            municipio, Constants.etiqueta()) + " . ")

        query += Constants.municipio() + " foaf:mbox " + Constants.answer0(
        ) + " . "
        return query
Example #6
0
    def fax_municipio(query, municipio) -> str:
        # municipio = municipio.upper()  # En el campo esta en mayusculas el municipio

        query += (Constants.municipio() + " " + Constants.aux0() +
                  " ei2a:Ayuntamiento . ")

        query += (Constants.municipio() + " ei2a:organizationName " +
                  Constants.etiqueta())

        query += (TemplatesAragon.create_bif_contains(
            municipio, Constants.etiqueta()) + " . ")

        query += Constants.municipio() + " org:hasSite " + Constants.sede(
        ) + " . "

        query += Constants.sede() + " org:siteAddress " + Constants.aux1(
        ) + " . "

        query += Constants.aux1() + " vcard:Fax " + Constants.answer0() + " . "
        return query
    def villas_municipio(query, municipio) -> str:

        query += (Constants.comarca() + " " + Constants.aux0() +
                  " ei2a:villas_y_tierras . ")

        query += (Constants.comarca() + " ei2a:organizationName " +
                  Constants.answer0() + " . ")

        query += (Constants.comarca() +
                  " <http://www.w3.org/2003/01/geo/wgs84_pos#location> " +
                  Constants.location() + " . ")

        query += (Constants.location() +
                  " <http://www.w3.org/2003/01/geo/wgs84_pos#location> " +
                  Constants.aux1() + " . ")

        query += (Constants.aux1() + " ei2a:organizationName " +
                  Constants.etiqueta() + " . ")

        query += (TemplatesAgriculture.create_bif_contains(
            municipio, Constants.etiqueta()) + " . ")
        return query
    def municipio_comarca_agraria(query, comarca_agraria) -> str:

        query += (Constants.comarca() + " " + Constants.aux0() +
                  " ei2a:comarca_agraria . ")

        query += (Constants.comarca() + " ei2a:organizationName " +
                  Constants.etiqueta() + " . ")

        query += (TemplatesAgriculture.create_bif_contains(
            comarca_agraria, Constants.etiqueta()) + " . ")

        query += (Constants.comarca() +
                  " <http://www.w3.org/2003/01/geo/wgs84_pos#location> " +
                  Constants.location() + " . ")

        query += (Constants.location() +
                  " <http://www.w3.org/2003/01/geo/wgs84_pos#location> " +
                  Constants.aux1() + " . ")

        query += (Constants.aux1() + " ei2a:organizationName " +
                  Constants.answer0() + " . ")
        return query
    def info_villa(query, villa) -> str:

        query = query.replace(
            Constants.answer0(),
            Constants.answer0() + " " + Constants.answer1() + " " +
            Constants.answer2() + " " + Constants.answer3(),
        )

        query += (Constants.comarca() + " " + Constants.aux0() +
                  " ei2a:villas_y_tierras . ")

        query += (Constants.comarca() + " ei2a:organizationName " +
                  Constants.etiqueta() + " . ")

        query += (TemplatesAgriculture.create_bif_contains(
            villa, Constants.etiqueta()) + " . ")

        query += (Constants.comarca() +
                  " <http://www.w3.org/2003/01/geo/wgs84_pos#location> " +
                  Constants.location() + " . ")

        query += (Constants.location() +
                  " <http://www.w3.org/2003/01/geo/wgs84_pos#location> " +
                  Constants.aux1() + " . ")

        query += (Constants.aux1() + " ei2a:organizationName " +
                  Constants.answer0() + " . ")

        query += (Constants.comarca() +
                  " <http://opendata.aragon.es/def/ei2a#phone> " +
                  Constants.answer1() + " . ")

        query += (Constants.comarca() + " <http://xmlns.com/foaf/0.1/mbox> " +
                  Constants.answer2() + " . ")

        query += (Constants.comarca() +
                  " <http://opendata.aragon.es/def/ei2a#CIF> " +
                  Constants.answer3() + " . ")
        return query