Схема WIX.com JSON -LD Проблемы с фрагментами - PullRequest
0 голосов
/ 24 апреля 2020

Проблемы с фрагментами схемы WIX.com

Я пытаюсь установить некоторые фрагменты схемы на свой веб-сайт Wix и продолжаю получать ошибки.

Кто-то сказал

Ваш код содержит 4 тега, и вы используете разные типы схем

Справка Wix гласит:

Вы можете использовать один основной JSON -LD, вложение разрешено.

Я удалил теги сценария, но я не уверен, как «вкладывать» различные типы схем. Любая помощь будет принята с благодарностью

-Джефф

Код здесь: https://docs.google.com/document/d/1QWAkjjExws7IdYH25HuBbGN5gkeSDlusXlYdS56vO0Q/edit?usp=sharing

Здесь правила WIX JSON:

  • Если вы получили ошибку, проверьте свои структурированные данные и убедитесь, что:
  • Ваш код находится в JSON -LD формат.
  • Ваш код начинается с тега HTML и заканчивается на.
  • Внутри тега сам JSON -LD заключен в фигурные скобки {}.
  • Каждый элемент в JSON -LD отделяется от следующего запятой. Однако последний элемент не должен иметь запятую после него.
  • Ваш код использует прямые кавычки "". Вьющиеся кавычки «» не проходят проверку.
  • Ваш код использует только один тег сценария, и этот тег сценария включает в себя только один основной тип разметки схемы (один основной JSON -LD, вложение разрешено).
  • Все поля имеют формат: «ключ»: «контент». Нажатие «Ввод» в любом из полей не пройдет проверку, например:
  • Пройдите проверку: «текст»: «это предложение с текстом.»
  • СБОЙ проверку: «текст» : «это предложение с текстом.»
  • Ваш код содержит менее 7000 символов. Нельзя добавить код длиной более 7 000 символов.

1 Ответ

0 голосов
/ 25 апреля 2020

Вы добавили несколько объектов верхнего уровня, которые не являются допустимым синтаксисом. Чтобы обойти это, вам нужно определить сущность верхнего уровня, которая содержит все остальные. Это делается с помощью @graph и перечисления остальных в массиве. например,

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@graph": [
    {
        
        "@type": "TravelAgency",
        "name": "ColombiaMotoAdventures",
        "image": "https://static.wixstatic.com/media/331b1d_452c7e9b5e304d2ca37e16dc81141be6~mv2.png/v1/fill/w_270,h_270,al_c,usm_0.66_1.00_0.01/331b1d_452c7e9b5e304d2ca37e16dc81141be6~mv2.png",
        "@id": "",
        "url": "https://www.ColombiaMotoAdventures",
        "telephone": "3214917060",
        "priceRange": "80-100",
        "address": {
            "@type": "PostalAddress",
            "streetAddress": "Cra. 102, Loma de Pajarito ##68-36",
            "addressLocality": "Medellin",
            "postalCode": "",
            "addressCountry": "CO"
        },
        "openingHoursSpecification": {
            "@type": "OpeningHoursSpecification",
            "dayOfWeek": [
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday",
                "Sunday"
            ],
            "opens": "09:00",
            "closes": "18:00"
        },
        "sameAs": "https://www.facebook.com/ColombiaMotoAdventures"
    },
{
  "@type": "WebSite",
  "name": "Colombia Moto Adventures",
  "url": "https://www.colombiamotoadventures.com/",
  "potentialAction": {
    "@type": "SearchAction",
    "target": "https://www.colombiamotoadventures.com/?s={search_term_string}{search_term_string}",
    "query-input": "required name=search_term_string"
  }
},
{
    "@type": "Trip",
    "name": "Colombia Motorcycle Tour",
    "description": "The dozen best places and areas that should be on your list when visiting Medellin, Colombia. Our motorcycle tours and rentals are geared towards beginner and intermediate riders. We have lots of people come down and tour around who don't speak a word of Spanish and they do just fine. Our tours are also geared towards beginner and intermediate riders. We are an American owned ADV motorcycle rental company based in Medellin, Colombia. Our motorcycles are perfect for comfortable, long-distance touring but are also capable to take you mud, rocks and river-crossings if that's where you decide to go.",
    "itinerary": [
        {
            "@type": "Country",
            "name": "Colombia",
            "description": "Colombia is projected as one of Latin America's main destinations in terms of adventure tourism, multiple cultural activities, the best gastronomy, so that you can make your tourism trip an unforgettable experience. It is a country that makes you vibrate with its emotions, where you can choose the destination of your preference.",
            "url": "https://en.wikipedia.org/wiki/Colombia"
        }
    ]
},
{
  "@type": "TouristTrip",
  "name": "Colombia",
  "description": "This trip is modeled as several distinct Tourist Trips using the subTrip property.",
  "subTrip": [
      {
        "@type": "TouristTrip",
        "name": "Colombia Jungle Motorcycle Adventure",
        "description": "Rent a motorcycle in Medellin and drive to the jungle. Swim in the crystal clear waters of a jungle river and drink cold beers while listening to the amazing sounds of the jungle at night. The perfect South America motorcycle route"
      },
      {
        "@type": "TouristTrip",
        "name": "Guatape Motorcycle Trip",
        "description": "Ride a motorcycle to Guatape and have lunch! Leave Medellín in the morning and take a drive out to the town of Guatape."
      },
      {
        "@type": "TouristTrip",
        "name": "Suzuki DR650 Motorcycle Rental",
        "description": "Rent a DR650 motorcycle in Colombia. Known as the worlds best dual-sport motorcycle take your South America motorcycle adventure with this!  "
      },
      {
        "@type": "TouristTrip",
        "name": "Medellin Motorcycle Trout Fishing Day Trip",
        "description": "Ride an adventure motorcycle into the remote backcountry outside of Medellin and catch trout with a local family. "
      },
      {
        "@type": "TouristTrip",
        "name": "Cerro del Padre Amaya Off-Road Motorcycle Trip",
        "description": "Boquerón to Padre Amaya - This is where things get interesting, We take our motorcycles and start heading up an off-road trail stunning views and high altitude."
      },
      {
        "@type": "TouristTrip",
        "name": "Colombia Waterfalls Motobike Tour",
        "description": "Want to explore beyond Guatape? This motorcycle trip is for you! San Carlos is a small pueblo near Medellín that hasn’t yet been discovered by many foreigners. But it’s a hidden gem surrounded by mountains, rivers, waterfalls, and nature."
      },
      {
        "@type": "TouristTrip",
        "name": "Medellin Motorcycle Rental",
        "description": "Motorcycle Tours and Rentals in Medellin, Colombia. We have the best selection of adventure motorcycles in Colombia Suzuki DR650, Honda XRE300, Kawasaki Versys-X 300."
      },
      {
        "@type": "TouristTrip",
        "name": "5 Day Colombia Lost Emerald City Motorcycle Tour",
        "description": "Off-Road Colombia - Journey to the Lost Emerald City. Ride motorcycles off-road through rugged terrain, cross mountain ranges, and streams see amazing vistas and waterfalls and finally get the chance to and interact with local emerald miners. You can even buy emeralds directly from the miners in the field!"
      },
      {
        "@type": "TouristTrip",
        "name": "Colombia Coffee Region Motorcycle Tour",
        "description": "Take an amazing motorcycle trip through Colombia's Coffee Region. Swim in the hot springs in Santa Rosa and take a coffee tour in Salento as well as walking through the Wax Palms in the Valle Cocora, and as always, enjoy all the twists and turns while riding through some of the amazing scenery in the world."
      },
          {
        "@type": "TouristTrip",
        "name": "19 Day Colombia to Ecuador Motorcycle Trip",
        "description": "Journey To The Center Of The Earth. Based on customer feedback, we have decided to turn our most popular South America motorcycle route in Colombia into a full motorcycle tour through the most beautiful parts of Colombia and Ecuador. Rent a motorcycle in Medellin, Colombia, and ride to Quito, Ecuador and back."
      }
    ]
}]
}
</script>
...