Skip to content

Conversation

pascalfleury
Copy link
Contributor

@pascalfleury pascalfleury commented Oct 10, 2024

This changes the representation of shipping information according to issue #3617, with some properties moved to the attic.

See details in the design doc.

The new structure can be navigated at: https://1-dot-schemadotorg1.ew.r.appspot.com/ShippingConditions

@pascalfleury
Copy link
Contributor Author

pascalfleury commented Oct 15, 2024

The design doc and the proposed change went through the ShippingService -> ShippingConditions renaming.

the link to the new Type is now: https://1-dot-schemadotorg1.ew.r.appspot.com/ShippingConditions

Copy link

This pull request is being nudged due to inactivity.

@github-actions github-actions bot added the no-pr-activity Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!). label Jan 27, 2025
@pascalfleury
Copy link
Contributor Author

Newly deployed here now: https://1-dot-schemadotorg1.ew.r.appspot.com/ShippingService

# ║ FulfillmentType enumeration ║
# ╚════════════════════════════════════════════════════════╝

:FulfillmentType a rdfs:Class ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to FulfillmentTypeEnumeration for consistency with other enumeration types

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.


:FulfillmentType a rdfs:Class ;
rdfs:label "FulfillmentType" ;
rdfs:comment "A type of product shipping fulfillment." ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"shipping" seems superfluous, maybe just "A fulfillment method" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

rdfs:label "Delivery" ;
:isPartOf <https://pending.schema.org> ;
:source <https://github.com/schemaorg/schemaorg/issues/3617> ;
rdfs:comment "Shipping service fulfilling items to a customer selected address." .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Fulfillment to a customer's selected address." ? (same prefix for the other enum value below) That way we make it more generic

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

:isPartOf <https://pending.schema.org> ;
:source <https://github.com/schemaorg/schemaorg/issues/3617> .

:validForMemberTier a rdf:Property ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to update the description for this existing property, it refers to OfferShippingDetails but should now refer also to ShippingService. Maybe edit this entire property in the other .ttl file where the property was originally defined (for issue 3563).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be renamed deliveryTime so it is consistent with the rest of the vocabulary.

rdfs:subClassOf :StructuredValue ;
:isPartOf <https://pending.schema.org> ;
:source <https://github.com/schemaorg/schemaorg/issues/3617> ;
rdfs:comment "ShippingConditions represent a set of constraints and information about the conditions of shipping a product. Such conditions may apply to only a subset of the products being shipped, depending on aspects of the product like weight, size, price, destination, and others." .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add something that makes explicit that these conditions together specify a resulting shipping cost and/or handling and transit time. For example heavy or bulky items will be more expensive to ship that small items.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added some clarification.

Copy link
Contributor

@alex-jansen alex-jansen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we also need some examples (in a separate issue-3617-examples.txt file)

@pascalfleury pascalfleury force-pushed the issue-3617 branch 5 times, most recently from 6b201bc to 6959ef2 Compare February 17, 2025 13:47
:domainIncludes :OfferShippingDetails ;
:rangeIncludes :Mass .

:shippingService a rdf:Property ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this since we also add :hasShippingService below? We can have the same property used on both :OfferShipping details and :Organization

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. Even though the 'has' prefix is confusing users out there...

# ╔════════════════════════════════════════════════════════╗
# ║ Delete DeliveryTimeSettings ║
# ╚════════════════════════════════════════════════════════╝
:DeliveryTimeSettings a rdfs:Class ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this also go to the attic then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

# ╔════════════════════════════════════════════════════════╗
# ║ Adding ShippingCondition ║
# ╚════════════════════════════════════════════════════════╝
:ShippingConditions a rdfs:Class ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be singular instead of plural since it is a single condition? (comment above is also singular)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected the comment. There are actually multiple conditions in that target Type.

:rangeIncludes :QuantitativeValue ;
:isPartOf <https://pending.schema.org> ;
:source <htps://github.com/schemaorg/schemaorg/issues/3617> ;
rdfs:comment "Limits in the number of items being shipped for which these conditions apply." .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Limits the number (no "in" ?)

:rangeIncludes :Boolean ;
:source <htps://github.com/schemaorg/schemaorg/issues/3617> .

:deliveryTime a rdf:Property ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this represent transit time only and then not be named as such? (since handling time is modeled under ShippingService)? Or does it model both transit time and handling time (but in that case we need two separate properties IIUC)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noticed it is also defined below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had not updated it to the new ServicePeriod.

Copy link
Contributor

@alex-jansen alex-jansen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these examples result in some build errors against the schema

# ╔════════════════════════════════════════════════════════╗
# ║ Amend ShippingDeliveryTime ║
# ╚════════════════════════════════════════════════════════╝
:transitDays a rdf:Property ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we also need to add :handlingDays ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is cruft thatI remove now.

data/schema.ttl Outdated
In the context of [[OfferShippingDetails]] and [[ShippingService]], this field is used to specify the handling time and the shipping time if the merchant does the shipping.
In the context of [[ShippingConditions]], this is generally used to specify the transit time.""" ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is no longer under ShippingConditions? And do we still need :delivery time now we have :handling time and :transitTime?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we have handlingTime and transitTime now, this comment clash no longer applies. Reverted to the previous message.

This changes the representation of shipping information accordoing to
issue schemaorg#3617, with some properties moved to the attic.
@alex-jansen alex-jansen merged commit 6a4dfba into schemaorg:main Feb 21, 2025
1 check passed
@pascalfleury pascalfleury deleted the issue-3617 branch March 5, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-pr-activity Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants